C# Class FSO.SimAntics.VMArchitecture

显示文件 Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
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

Public Methods

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

Private Methods

Method Description
GetFloorRef ( ushort id ) : FloorReference
GetPatternRef ( ushort id ) : WallReference

Method Details

GetFloor() public method

public GetFloor ( short tileX, short tileY, sbyte level ) : FSO.LotView.Model.FloorTile
tileX short
tileY short
level sbyte
return FSO.LotView.Model.FloorTile

GetOffset() public method

public GetOffset ( int tileX, int tileY ) : ushort
tileX int
tileY int
return ushort

GetWall() public method

public GetWall ( short tileX, short tileY, sbyte level ) : FSO.LotView.Model.WallTile
tileX short
tileY short
level sbyte
return FSO.LotView.Model.WallTile

Load() public method

public Load ( VMArchitectureMarshal input ) : void
input FSO.SimAntics.Marshals.VMArchitectureMarshal
return void

RaycastWall() public method

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

RegenRoomMap() public method

public RegenRoomMap ( ) : void
return void

RegenWallsAt() public method

public RegenWallsAt ( ) : void
return void

RegenerateSupported() public method

public RegenerateSupported ( int level ) : void
level int
return void

RunCommands() public method

public RunCommands ( List commands, bool transient ) : int
commands List
transient bool
return int

Save() public method

public Save ( ) : VMArchitectureMarshal
return FSO.SimAntics.Marshals.VMArchitectureMarshal

SetFloor() public method

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

SetObjectSupported() public method

public SetObjectSupported ( short x, short y, sbyte level, bool support ) : void
x short
y short
level sbyte
support bool
return void

SetTimeOfDay() public method

public SetTimeOfDay ( double time ) : void
time double
return void

SetWall() public method

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

SignalRedraw() public method

public SignalRedraw ( ) : void
return void

SimulateCommands() public method

public SimulateCommands ( List commands, bool visualChange ) : int
commands List
visualChange bool
return int

Tick() public method

public Tick ( ) : void
return void

VMArchitecture() public method

public VMArchitecture ( VMArchitectureMarshal input, VMContext context, FSO.LotView.Model.Blueprint blueprint ) : System
input FSO.SimAntics.Marshals.VMArchitectureMarshal
context VMContext
blueprint FSO.LotView.Model.Blueprint
return System

VMArchitecture() public method

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

WallDirtyState() public method

public WallDirtyState ( VMArchitectureMarshal input ) : void
input FSO.SimAntics.Marshals.VMArchitectureMarshal
return void

Property Details

Commands public_oe property

public List Commands
return List

Context public_oe property

public VMContext,FSO.SimAntics Context
return VMContext

Floors public_oe property

public FloorTile[][],FSO.LotView.Model Floors
return FSO.LotView.Model.FloorTile[][]

Height public_oe property

public int Height
return int

LastTestCost public_oe property

public int LastTestCost
return int

ObjectSupport public_oe property

public bool[][] ObjectSupport
return bool[][]

RoomData public_oe property

public List RoomData
return List

Rooms public_oe property

public VMRoomMap[],FSO.SimAntics.Model Rooms
return FSO.SimAntics.Model.VMRoomMap[]

Stories public_oe property

public int Stories
return int

Supported public_oe property

public bool[][] Supported
return bool[][]

VisFloors public_oe property

public FloorTile[][],FSO.LotView.Model VisFloors
return FSO.LotView.Model.FloorTile[][]

VisWalls public_oe property

public WallTile[][],FSO.LotView.Model VisWalls
return FSO.LotView.Model.WallTile[][]

Walls public_oe property

public WallTile[][],FSO.LotView.Model Walls
return FSO.LotView.Model.WallTile[][]

WallsAt public_oe property

public List[] WallsAt
return List[]

Width public_oe property

public int Width
return int