C# Класс OpenRA.Mods.Common.Traits.BuildingUtils

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

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

Метод Описание
CanPlaceBuilding ( this world, string name, BuildingInfo building, CPos topLeft, Actor toIgnore ) : bool
GetLineBuildCells ( World world, CPos location, string name, BuildingInfo bi ) : IEnumerable
IsCellBuildable ( this world, CPos cell, BuildingInfo bi, Actor toIgnore = null ) : bool

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

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

public static CanPlaceBuilding ( this world, string name, BuildingInfo building, CPos topLeft, Actor toIgnore ) : bool
world this
name string
building BuildingInfo
topLeft CPos
toIgnore Actor
Результат bool

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

public static GetLineBuildCells ( World world, CPos location, string name, BuildingInfo bi ) : IEnumerable
world World
location CPos
name string
bi BuildingInfo
Результат IEnumerable

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

public static IsCellBuildable ( this world, CPos cell, BuildingInfo bi, Actor toIgnore = null ) : bool
world this
cell CPos
bi BuildingInfo
toIgnore Actor
Результат bool