C# Class FSO.SimAntics.Utils.VMArchitectureTools

Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
CutCheckDir int[][]

Public Methods

Method Description
ApplyCutRectangle ( VMArchitecture target, sbyte floor, bool cuts, Rectangle rect ) : bool

Cuts the specified rectangle. Returns true if a *potentially noticable change* occurred as a result. (changed a cut to true on a tile where there is a wall)

DrawWall ( VMArchitecture target, Point pos, int length, int direction, ushort pattern, ushort style, sbyte level, bool force ) : int
DrawWallRect ( VMArchitecture target, Rectangle rect, ushort pattern, ushort style, sbyte level ) : int
EraseWall ( VMArchitecture target, Point pos, int length, int direction, ushort pattern, ushort style, sbyte level ) : int
FloorPatternFill ( VMArchitecture target, Point pos, ushort pattern, sbyte level ) : PatternReplaceCount

Fills a room with a certain Floor pattern. Returns floors covered

FloorPatternRect ( VMArchitecture target, Rectangle rect, ushort dir, ushort pattern, sbyte level ) : PatternReplaceCount
GenerateRoomCut ( VMArchitecture target, sbyte floor, WorldRotation dir, HashSet cutRooms ) : bool[]
GetPatternDirection ( VMArchitecture target, Point pos, ushort pattern, int direction, int altDir, sbyte level ) : int
VerifyDrawWall ( VMArchitecture target, Point pos, int length, int direction, sbyte level ) : bool
VerifyEraseWall ( VMArchitecture target, Point pos, int length, int direction, sbyte level ) : bool
WallPatternDot ( VMArchitecture target, Point pos, ushort pattern, int direction, int altDir, sbyte level ) : PatternReplaceCount
WallPatternFill ( VMArchitecture target, Point pos, ushort pattern, sbyte level ) : PatternReplaceCount

Fills a room with a certain wall pattern. Returns walls covered

Private Methods

Method Description
SpreadOnto ( FSO.LotView.Model.WallTile walls, int x, int y, int inDir, byte map, int width, int height, Stack spread, ushort pattern, bool floorMode ) : PatternReplaceCount

Method Details

ApplyCutRectangle() public static method

Cuts the specified rectangle. Returns true if a *potentially noticable change* occurred as a result. (changed a cut to true on a tile where there is a wall)
public static ApplyCutRectangle ( VMArchitecture target, sbyte floor, bool cuts, Rectangle rect ) : bool
target VMArchitecture
floor sbyte
cuts bool
rect Microsoft.Xna.Framework.Rectangle
return bool

DrawWall() public static method

public static DrawWall ( VMArchitecture target, Point pos, int length, int direction, ushort pattern, ushort style, sbyte level, bool force ) : int
target VMArchitecture
pos Point
length int
direction int
pattern ushort
style ushort
level sbyte
force bool
return int

DrawWallRect() public static method

public static DrawWallRect ( VMArchitecture target, Rectangle rect, ushort pattern, ushort style, sbyte level ) : int
target VMArchitecture
rect Microsoft.Xna.Framework.Rectangle
pattern ushort
style ushort
level sbyte
return int

EraseWall() public static method

public static EraseWall ( VMArchitecture target, Point pos, int length, int direction, ushort pattern, ushort style, sbyte level ) : int
target VMArchitecture
pos Point
length int
direction int
pattern ushort
style ushort
level sbyte
return int

FloorPatternFill() public static method

Fills a room with a certain Floor pattern. Returns floors covered
public static FloorPatternFill ( VMArchitecture target, Point pos, ushort pattern, sbyte level ) : PatternReplaceCount
target VMArchitecture
pos Point
pattern ushort
level sbyte
return PatternReplaceCount

FloorPatternRect() public static method

public static FloorPatternRect ( VMArchitecture target, Rectangle rect, ushort dir, ushort pattern, sbyte level ) : PatternReplaceCount
target VMArchitecture
rect Microsoft.Xna.Framework.Rectangle
dir ushort
pattern ushort
level sbyte
return PatternReplaceCount

GenerateRoomCut() public static method

public static GenerateRoomCut ( VMArchitecture target, sbyte floor, WorldRotation dir, HashSet cutRooms ) : bool[]
target VMArchitecture
floor sbyte
dir WorldRotation
cutRooms HashSet
return bool[]

GetPatternDirection() public static method

public static GetPatternDirection ( VMArchitecture target, Point pos, ushort pattern, int direction, int altDir, sbyte level ) : int
target VMArchitecture
pos Point
pattern ushort
direction int
altDir int
level sbyte
return int

VerifyDrawWall() public static method

public static VerifyDrawWall ( VMArchitecture target, Point pos, int length, int direction, sbyte level ) : bool
target VMArchitecture
pos Point
length int
direction int
level sbyte
return bool

VerifyEraseWall() public static method

public static VerifyEraseWall ( VMArchitecture target, Point pos, int length, int direction, sbyte level ) : bool
target VMArchitecture
pos Point
length int
direction int
level sbyte
return bool

WallPatternDot() public static method

public static WallPatternDot ( VMArchitecture target, Point pos, ushort pattern, int direction, int altDir, sbyte level ) : PatternReplaceCount
target VMArchitecture
pos Point
pattern ushort
direction int
altDir int
level sbyte
return PatternReplaceCount

WallPatternFill() public static method

Fills a room with a certain wall pattern. Returns walls covered
public static WallPatternFill ( VMArchitecture target, Point pos, ushort pattern, sbyte level ) : PatternReplaceCount
target VMArchitecture
pos Point
pattern ushort
level sbyte
return PatternReplaceCount

Property Details

CutCheckDir public_oe static_oe property

public static int[][] CutCheckDir
return int[][]