C# Класс CellMaster, DoomRoom

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

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

Свойство Тип Описание
_areaSize float
_cellSize float
pathAffectingLayers LayerMask
wallDensity float

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

Метод Описание
Awake ( ) : void
GenLayout ( ) : void
GetCellAt ( Vector3 pos ) : Cell,
GetCellAt ( int x, int y ) : Cell,
GetPathAffectingLayers ( ) : LayerMask
OnDisable ( ) : void
Start ( ) : void

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

Метод Описание
AddCellToRoom ( Cell, newCell, int inRoom ) : bool

Adds the cell to given room.

OpenCellInDirection ( Cell, toOpen, Direction, inDir ) : Cell,

Opens the cell in direction.

PrintLayout ( ) : void
RandomDirection ( ) : Direction,

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

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

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

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

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

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

public static GetCellAt ( Vector3 pos ) : Cell,
pos Vector3
Результат Cell,

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

public static GetCellAt ( int x, int y ) : Cell,
x int
y int
Результат Cell,

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

public static GetPathAffectingLayers ( ) : LayerMask
Результат LayerMask

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

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

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

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

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

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

public float _areaSize
Результат float

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

public float _cellSize
Результат float

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

public LayerMask pathAffectingLayers
Результат LayerMask

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

public float wallDensity
Результат float