C# Class NetMud.Cartography.Rendering

General set of methods to render rooms, zones and worlds into ascii maps
Afficher le fichier Open project: SwiftAusterity/NetMud

Méthodes publiques

Méthode Description
RenderMap ( long map, bool forAdmin, bool withPathways, IRoomData centerRoom ) : string

Renders a map from a single z,y plane

RenderRadiusMap ( IRoom room, int radius ) : string

Render an ascii map of live rooms around a specific radius (always includes pathways, never includes editing links)

RenderRadiusMap ( IRoomData room, int radius, bool forAdmin = true, bool withPathways = true ) : string

Render an ascii map of stored data rooms around a specific radius

Private Methods

Méthode Description
RenderPathwayToAsciiForModals ( IPathwayData path, long originId, MovementDirectionType directionType, IRoomData destination, bool forAdmin = false ) : string
RenderRoomToAscii ( IRoomData destination, bool centered, bool forAdmin = false ) : string

Method Details

RenderMap() public static méthode

Renders a map from a single z,y plane
public static RenderMap ( long map, bool forAdmin, bool withPathways, IRoomData centerRoom ) : string
map long The map to render
forAdmin bool is this for admin (with edit links)
withPathways bool include pathway symbols
centerRoom IRoomData the room considered "center"
Résultat string

RenderRadiusMap() public static méthode

Render an ascii map of live rooms around a specific radius (always includes pathways, never includes editing links)
public static RenderRadiusMap ( IRoom room, int radius ) : string
room IRoom the room to render the radius around
radius int the radius around the room to render
Résultat string

RenderRadiusMap() public static méthode

Render an ascii map of stored data rooms around a specific radius
public static RenderRadiusMap ( IRoomData room, int radius, bool forAdmin = true, bool withPathways = true ) : string
room IRoomData the room to render the radius around
radius int the radius around the room to render
forAdmin bool include edit links for paths and rooms?
withPathways bool include paths at all?
Résultat string