C# Class FSO.LotView.Components.WallComponent

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

Public Properties

Property Type Description
WallCache Wall>.Dictionary
WallStyleCache WallStyle>.Dictionary
blueprint FSO.LotView.Model.Blueprint

Public Methods

Method Description
Draw ( GraphicsDevice device, WorldState world ) : void

Private Methods

Method Description
CopySprite ( WorldState world, _2DSprite _Sprite ) : _2DSprite
GenerateWallData ( FSO.LotView.Model.WallTile walls, List wallsAt, bool notTop ) : void
GetCutEdges ( int x, int y ) : CutawayEdges
GetFloorSprite ( Floor pattern, int rotation, WorldState world, byte cut ) : _2DSprite
GetPattern ( ushort id ) : Wall
GetStyle ( ushort id ) : WallStyle
GetWallSprite ( Wall pattern, WallStyle style, int rotation, bool down, WorldState world ) : _2DSprite
OffsetValid ( Vector3 off, FSO.LotView.Model.Blueprint blueprint ) : bool
RotateCuts ( WorldRotation rot, WallCuts input, short x, short y ) : WallCuts
RotateJunction ( WorldRotation rot, JunctionFlags input ) : JunctionFlags

Gets rotated junctions and segements

RotateOffset ( WorldRotation rot, Vector3 off ) : Vector3
RotateWall ( WorldRotation rot, FSO.LotView.Model.WallTile input, short x, short y, sbyte level ) : FSO.LotView.Model.WallTile
WallsDownAt ( int x, int y ) : bool

Walls Cutaway helper methods.

Method Details

Draw() public method

public Draw ( GraphicsDevice device, WorldState world ) : void
device GraphicsDevice
world WorldState
return void

Property Details

WallCache public_oe property

public Dictionary WallCache
return Wall>.Dictionary

WallStyleCache public_oe property

public Dictionary WallStyleCache
return WallStyle>.Dictionary

blueprint public_oe property

public Blueprint,FSO.LotView.Model blueprint
return FSO.LotView.Model.Blueprint