C# 클래스 OpenRA.Mods.Common.Traits.BuildingUtils

파일 보기 프로젝트 열기: pchote/OpenRA 1 사용 예제들

공개 메소드들

메소드 설명
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