C# Класс FSO.SimAntics.VMArchitecture

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Commands List
Context VMContext
Floors FSO.LotView.Model.FloorTile[][]
Height int
LastTestCost int
ObjectSupport bool[][]
RoomData List
Rooms FSO.SimAntics.Model.VMRoomMap[]
Stories int
Supported bool[][]
VisFloors FSO.LotView.Model.FloorTile[][]
VisWalls FSO.LotView.Model.WallTile[][]
Walls FSO.LotView.Model.WallTile[][]
WallsAt List[]
Width int

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

Метод Описание
GetFloor ( short tileX, short tileY, sbyte level ) : FSO.LotView.Model.FloorTile
GetOffset ( int tileX, int tileY ) : ushort
GetWall ( short tileX, short tileY, sbyte level ) : FSO.LotView.Model.WallTile
Load ( VMArchitectureMarshal input ) : void
RaycastWall ( Point p1, Point p2, sbyte level ) : bool

Checks if there is a wall between two (Full Tile) points.

RegenRoomMap ( ) : void
RegenWallsAt ( ) : void
RegenerateSupported ( int level ) : void
RunCommands ( List commands, bool transient ) : int
Save ( ) : VMArchitectureMarshal
SetFloor ( short tileX, short tileY, sbyte level, FSO.LotView.Model.FloorTile floor, bool force ) : bool
SetObjectSupported ( short x, short y, sbyte level, bool support ) : void
SetTimeOfDay ( double time ) : void
SetWall ( short tileX, short tileY, sbyte level, FSO.LotView.Model.WallTile wall ) : void
SignalRedraw ( ) : void
SimulateCommands ( List commands, bool visualChange ) : int
Tick ( ) : void
VMArchitecture ( VMArchitectureMarshal input, VMContext context, FSO.LotView.Model.Blueprint blueprint ) : System
VMArchitecture ( int width, int height, FSO.LotView.Model.Blueprint blueprint, VMContext context ) : System
WallDirtyState ( VMArchitectureMarshal input ) : void

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

Метод Описание
GetFloorRef ( ushort id ) : FloorReference
GetPatternRef ( ushort id ) : WallReference

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

GetFloor() публичный Метод

public GetFloor ( short tileX, short tileY, sbyte level ) : FSO.LotView.Model.FloorTile
tileX short
tileY short
level sbyte
Результат FSO.LotView.Model.FloorTile

GetOffset() публичный Метод

public GetOffset ( int tileX, int tileY ) : ushort
tileX int
tileY int
Результат ushort

GetWall() публичный Метод

public GetWall ( short tileX, short tileY, sbyte level ) : FSO.LotView.Model.WallTile
tileX short
tileY short
level sbyte
Результат FSO.LotView.Model.WallTile

Load() публичный Метод

public Load ( VMArchitectureMarshal input ) : void
input FSO.SimAntics.Marshals.VMArchitectureMarshal
Результат void

RaycastWall() публичный Метод

Checks if there is a wall between two (Full Tile) points.
public RaycastWall ( Point p1, Point p2, sbyte level ) : bool
p1 Point Start Position (Full Tile Pos)
p2 Point End Position (Full Tile Pos)
level sbyte Level for both points
Результат bool

RegenRoomMap() публичный Метод

public RegenRoomMap ( ) : void
Результат void

RegenWallsAt() публичный Метод

public RegenWallsAt ( ) : void
Результат void

RegenerateSupported() публичный Метод

public RegenerateSupported ( int level ) : void
level int
Результат void

RunCommands() публичный Метод

public RunCommands ( List commands, bool transient ) : int
commands List
transient bool
Результат int

Save() публичный Метод

public Save ( ) : VMArchitectureMarshal
Результат FSO.SimAntics.Marshals.VMArchitectureMarshal

SetFloor() публичный Метод

public SetFloor ( short tileX, short tileY, sbyte level, FSO.LotView.Model.FloorTile floor, bool force ) : bool
tileX short
tileY short
level sbyte
floor FSO.LotView.Model.FloorTile
force bool
Результат bool

SetObjectSupported() публичный Метод

public SetObjectSupported ( short x, short y, sbyte level, bool support ) : void
x short
y short
level sbyte
support bool
Результат void

SetTimeOfDay() публичный Метод

public SetTimeOfDay ( double time ) : void
time double
Результат void

SetWall() публичный Метод

public SetWall ( short tileX, short tileY, sbyte level, FSO.LotView.Model.WallTile wall ) : void
tileX short
tileY short
level sbyte
wall FSO.LotView.Model.WallTile
Результат void

SignalRedraw() публичный Метод

public SignalRedraw ( ) : void
Результат void

SimulateCommands() публичный Метод

public SimulateCommands ( List commands, bool visualChange ) : int
commands List
visualChange bool
Результат int

Tick() публичный Метод

public Tick ( ) : void
Результат void

VMArchitecture() публичный Метод

public VMArchitecture ( VMArchitectureMarshal input, VMContext context, FSO.LotView.Model.Blueprint blueprint ) : System
input FSO.SimAntics.Marshals.VMArchitectureMarshal
context VMContext
blueprint FSO.LotView.Model.Blueprint
Результат System

VMArchitecture() публичный Метод

public VMArchitecture ( int width, int height, FSO.LotView.Model.Blueprint blueprint, VMContext context ) : System
width int
height int
blueprint FSO.LotView.Model.Blueprint
context VMContext
Результат System

WallDirtyState() публичный Метод

public WallDirtyState ( VMArchitectureMarshal input ) : void
input FSO.SimAntics.Marshals.VMArchitectureMarshal
Результат void

Описание свойств

Commands публичное свойство

public List Commands
Результат List

Context публичное свойство

public VMContext,FSO.SimAntics Context
Результат VMContext

Floors публичное свойство

public FloorTile[][],FSO.LotView.Model Floors
Результат FSO.LotView.Model.FloorTile[][]

Height публичное свойство

public int Height
Результат int

LastTestCost публичное свойство

public int LastTestCost
Результат int

ObjectSupport публичное свойство

public bool[][] ObjectSupport
Результат bool[][]

RoomData публичное свойство

public List RoomData
Результат List

Rooms публичное свойство

public VMRoomMap[],FSO.SimAntics.Model Rooms
Результат FSO.SimAntics.Model.VMRoomMap[]

Stories публичное свойство

public int Stories
Результат int

Supported публичное свойство

public bool[][] Supported
Результат bool[][]

VisFloors публичное свойство

public FloorTile[][],FSO.LotView.Model VisFloors
Результат FSO.LotView.Model.FloorTile[][]

VisWalls публичное свойство

public WallTile[][],FSO.LotView.Model VisWalls
Результат FSO.LotView.Model.WallTile[][]

Walls публичное свойство

public WallTile[][],FSO.LotView.Model Walls
Результат FSO.LotView.Model.WallTile[][]

WallsAt публичное свойство

public List[] WallsAt
Результат List[]

Width публичное свойство

public int Width
Результат int