C# Class LaserFence.Building_LaserFencePylon

Inheritance: Building
Show file Open project: Rikiki123456789/Rimworld Class Usage Examples

Public Methods

Method Description
CanPlaceNewPylonHere ( IntVec3 testedPosition, string &reason ) : bool
Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void
Draw ( ) : void
DrawPotentialPlacePositions ( IntVec3 pylonPosition ) : void
ExposeData ( ) : void
GetGizmos ( ) : IEnumerable
InformEdificeIsBlocking ( ) : void
SpawnSetup ( ) : void
SwitchLaserFence ( ) : void
Tick ( ) : void
ToggleEastFenceStatus ( ) : void
ToggleNorthFenceStatus ( ) : void
ToggleSouthFenceStatus ( ) : void
ToggleWestFenceStatus ( ) : void

Private Methods

Method Description
ActivateFence ( Rot4 direction, int fenceLength ) : void
DeactivateAllFences ( ) : void
DeactivateFence ( Rot4 direction ) : void
DisconnectFromPylon ( Rot4 direction ) : void
GetFenceStatusAsString ( int directionAsInt ) : string
LookForPylonInDirection ( Rot4 direction, bool forceConnection = false ) : void
TryToActivateInactiveFences ( ) : void
TryToConnectToPylon ( Building_LaserFencePylon linkedPylon, Rot4 direction, int fenceLength, bool forceConnection ) : void

Method Details

CanPlaceNewPylonHere() public static method

public static CanPlaceNewPylonHere ( IntVec3 testedPosition, string &reason ) : bool
testedPosition IntVec3
reason string
return bool

Destroy() public method

public Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void
mode DestroyMode
return void

Draw() public method

public Draw ( ) : void
return void

DrawPotentialPlacePositions() public static method

public static DrawPotentialPlacePositions ( IntVec3 pylonPosition ) : void
pylonPosition IntVec3
return void

ExposeData() public method

public ExposeData ( ) : void
return void

GetGizmos() public method

public GetGizmos ( ) : IEnumerable
return IEnumerable

InformEdificeIsBlocking() public method

public InformEdificeIsBlocking ( ) : void
return void

SpawnSetup() public method

public SpawnSetup ( ) : void
return void

SwitchLaserFence() public method

public SwitchLaserFence ( ) : void
return void

Tick() public method

public Tick ( ) : void
return void

ToggleEastFenceStatus() public method

public ToggleEastFenceStatus ( ) : void
return void

ToggleNorthFenceStatus() public method

public ToggleNorthFenceStatus ( ) : void
return void

ToggleSouthFenceStatus() public method

public ToggleSouthFenceStatus ( ) : void
return void

ToggleWestFenceStatus() public method

public ToggleWestFenceStatus ( ) : void
return void