C# Class OpenRA.Mods.Common.Traits.BuildingUtils

Datei anzeigen Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
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

Method Details

CanPlaceBuilding() public static method

public static CanPlaceBuilding ( this world, string name, BuildingInfo building, CPos topLeft, Actor toIgnore ) : bool
world this
name string
building BuildingInfo
topLeft CPos
toIgnore Actor
return bool

GetLineBuildCells() public static method

public static GetLineBuildCells ( World world, CPos location, string name, BuildingInfo bi ) : IEnumerable
world World
location CPos
name string
bi BuildingInfo
return IEnumerable

IsCellBuildable() public static method

public static IsCellBuildable ( this world, CPos cell, BuildingInfo bi, Actor toIgnore = null ) : bool
world this
cell CPos
bi BuildingInfo
toIgnore Actor
return bool