C# Класс FSO.SimAntics.Utils.VMArchitectureTools

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

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

Свойство Тип Описание
CutCheckDir int[][]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public static GenerateRoomCut ( VMArchitecture target, sbyte floor, WorldRotation dir, HashSet cutRooms ) : bool[]
target VMArchitecture
floor sbyte
dir WorldRotation
cutRooms HashSet
Результат bool[]

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

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

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

public static VerifyDrawWall ( VMArchitecture target, Point pos, int length, int direction, sbyte level ) : bool
target VMArchitecture
pos Point
length int
direction int
level sbyte
Результат bool

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

public static VerifyEraseWall ( VMArchitecture target, Point pos, int length, int direction, sbyte level ) : bool
target VMArchitecture
pos Point
length int
direction int
level sbyte
Результат bool

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

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

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

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

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

CutCheckDir публичное статическое свойство

public static int[][] CutCheckDir
Результат int[][]