C# Class House.House

Inheritance: BasePlugin
Datei anzeigen Open project: amarriner/House Class Usage Examples

Public Properties

Property Type Description
CHECK_ALLOWED int
CHECK_CHEST_LOCK int
CHECK_DOOR_LOCK int
CHECK_SIGN_LOCK int
chatColor Terraria_Server.Misc.Color
houseXML System.Xml.XmlDocument
lastTime double
maxArea int
maxHeight int
maxHouses int
minHeight int
playerHouses List
playersCanMakeHouses bool
playersCanTeleport bool
plugin House
pluginFolder string
properties Properties
tempHouses System.Collections.Hashtable
xmlFilename String
xmlNamespace String

Public Methods

Method Description
CreatePlayerHouse ( string PlayerName, int houseIndex ) : bool
Disable ( ) : void
Enable ( ) : void
GetHouseCoordsIndexByName ( string PlayerName, string HouseName ) : int
GetHouseNameImInside ( Terraria_Server.Player player ) : string
GetMyHouseNameImInside ( string PlayerName ) : string
GetMyHouseNamePositionInside ( string PlayerName, int x, int y ) : string
GetPlayerHouseIndex ( string PlayerName ) : int
GetTotalPlayerHouses ( string PlayerName ) : int
IsInsideAnotherHouse ( string PlayerName, int x, int y, int check ) : bool
Load ( ) : void
SaveHouseData ( ) : void
UpdateCoordsForPlayer ( string PlayerName, int x, int y, int houseIndex ) : void
onDoorStateChange ( DoorStateChangeEvent Event ) : void
onPlayerEditSign ( PlayerEditSignEvent Event ) : void
onPlayerFlowLiquid ( PlayerFlowLiquidEvent Event ) : void
onPlayerOpenChest ( PlayerChestOpenEvent Event ) : void
onPlayerTileChange ( PlayerTileChangeEvent Event ) : void
onTimeChange ( TimeChangedEvent Event ) : void
validateHouse ( string PlayerName, int houseIndex ) : void

Private Methods

Method Description
CreateDirectory ( string dirPath ) : void
LoadHouseData ( ) : void

Method Details

CreatePlayerHouse() public method

public CreatePlayerHouse ( string PlayerName, int houseIndex ) : bool
PlayerName string
houseIndex int
return bool

Disable() public method

public Disable ( ) : void
return void

Enable() public method

public Enable ( ) : void
return void

GetHouseCoordsIndexByName() public method

public GetHouseCoordsIndexByName ( string PlayerName, string HouseName ) : int
PlayerName string
HouseName string
return int

GetHouseNameImInside() public method

public GetHouseNameImInside ( Terraria_Server.Player player ) : string
player Terraria_Server.Player
return string

GetMyHouseNameImInside() public method

public GetMyHouseNameImInside ( string PlayerName ) : string
PlayerName string
return string

GetMyHouseNamePositionInside() public method

public GetMyHouseNamePositionInside ( string PlayerName, int x, int y ) : string
PlayerName string
x int
y int
return string

GetPlayerHouseIndex() public method

public GetPlayerHouseIndex ( string PlayerName ) : int
PlayerName string
return int

GetTotalPlayerHouses() public method

public GetTotalPlayerHouses ( string PlayerName ) : int
PlayerName string
return int

IsInsideAnotherHouse() public method

public IsInsideAnotherHouse ( string PlayerName, int x, int y, int check ) : bool
PlayerName string
x int
y int
check int
return bool

Load() public method

public Load ( ) : void
return void

SaveHouseData() public method

public SaveHouseData ( ) : void
return void

UpdateCoordsForPlayer() public method

public UpdateCoordsForPlayer ( string PlayerName, int x, int y, int houseIndex ) : void
PlayerName string
x int
y int
houseIndex int
return void

onDoorStateChange() public method

public onDoorStateChange ( DoorStateChangeEvent Event ) : void
Event DoorStateChangeEvent
return void

onPlayerEditSign() public method

public onPlayerEditSign ( PlayerEditSignEvent Event ) : void
Event PlayerEditSignEvent
return void

onPlayerFlowLiquid() public method

public onPlayerFlowLiquid ( PlayerFlowLiquidEvent Event ) : void
Event PlayerFlowLiquidEvent
return void

onPlayerOpenChest() public method

public onPlayerOpenChest ( PlayerChestOpenEvent Event ) : void
Event PlayerChestOpenEvent
return void

onPlayerTileChange() public method

public onPlayerTileChange ( PlayerTileChangeEvent Event ) : void
Event PlayerTileChangeEvent
return void

onTimeChange() public method

public onTimeChange ( TimeChangedEvent Event ) : void
Event TimeChangedEvent
return void

validateHouse() public method

public validateHouse ( string PlayerName, int houseIndex ) : void
PlayerName string
houseIndex int
return void

Property Details

CHECK_ALLOWED public_oe static_oe property

public static int CHECK_ALLOWED
return int

CHECK_CHEST_LOCK public_oe static_oe property

public static int CHECK_CHEST_LOCK
return int

CHECK_DOOR_LOCK public_oe static_oe property

public static int CHECK_DOOR_LOCK
return int

CHECK_SIGN_LOCK public_oe static_oe property

public static int CHECK_SIGN_LOCK
return int

chatColor public_oe property

public Terraria_Server.Misc.Color chatColor
return Terraria_Server.Misc.Color

houseXML public_oe property

public XmlDocument,System.Xml houseXML
return System.Xml.XmlDocument

lastTime public_oe property

public double lastTime
return double

maxArea public_oe property

public int maxArea
return int

maxHeight public_oe property

public int maxHeight
return int

maxHouses public_oe property

public int maxHouses
return int

minHeight public_oe property

public int minHeight
return int

playerHouses public_oe property

public List playerHouses
return List

playersCanMakeHouses public_oe property

public bool playersCanMakeHouses
return bool

playersCanTeleport public_oe property

public bool playersCanTeleport
return bool

plugin public_oe static_oe property

public static House,House plugin
return House

pluginFolder public_oe property

public string pluginFolder
return string

properties public_oe property

public Properties properties
return Properties

tempHouses public_oe property

public Hashtable,System.Collections tempHouses
return System.Collections.Hashtable

xmlFilename public_oe property

public String xmlFilename
return String

xmlNamespace public_oe property

public String xmlNamespace
return String