C# Class fCraft.Doors.DoorHandler

Show file Open project: GlennMR/800craft Class Usage Examples

Public Methods

Method Description
CreateDoor ( Door Door, World source ) : void
GetAffectedBlocks ( Door door ) : Vector3I[]
GetDoor ( Vector3I Coords, Player player ) : Door
GetDoor ( World world, Vector3I block ) : Door
GetInstance ( ) : DoorHandler
GetPlayerOwnedDoorsCount ( World world, Player player ) : int
PlayerClickedDoor ( object sender, Events e ) : void
PlayerPlacedDoor ( object sender, Events e ) : void

Private Methods

Method Description
DoorHandler ( ) : System
doorTimer_Elapsed ( SchedulerTask task ) : void
openDoor ( Door door, Player player ) : void

Method Details

CreateDoor() public static method

public static CreateDoor ( Door Door, World source ) : void
Door Door
source World
return void

GetAffectedBlocks() public method

public GetAffectedBlocks ( Door door ) : Vector3I[]
door Door
return Vector3I[]

GetDoor() public static method

public static GetDoor ( Vector3I Coords, Player player ) : Door
Coords Vector3I
player Player
return Door

GetDoor() public method

public GetDoor ( World world, Vector3I block ) : Door
world World
block Vector3I
return Door

GetInstance() public static method

public static GetInstance ( ) : DoorHandler
return DoorHandler

GetPlayerOwnedDoorsCount() public static method

public static GetPlayerOwnedDoorsCount ( World world, Player player ) : int
world World
player Player
return int

PlayerClickedDoor() public static method

public static PlayerClickedDoor ( object sender, Events e ) : void
sender object
e Events
return void

PlayerPlacedDoor() public static method

public static PlayerPlacedDoor ( object sender, Events e ) : void
sender object
e Events
return void