C# Класс NetMud.Cartography.Rendering

General set of methods to render rooms, zones and worlds into ascii maps
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
RenderPathwayToAsciiForModals ( IPathwayData path, long originId, MovementDirectionType directionType, IRoomData destination, bool forAdmin = false ) : string
RenderRoomToAscii ( IRoomData destination, bool centered, bool forAdmin = false ) : string

Описание методов

RenderMap() публичный статический Метод

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"
Результат string

RenderRadiusMap() публичный статический Метод

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
Результат string

RenderRadiusMap() публичный статический Метод

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?
Результат string