C# Class NetMud.Cartography.Rendering

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

Public Methods

Method 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

Method 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 method

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"
return string

RenderRadiusMap() public static method

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
return string

RenderRadiusMap() public static method

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?
return string