C# Class House.House

Inheritance: BasePlugin
Afficher le fichier Open project: amarriner/House Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode Description
CreateDirectory ( string dirPath ) : void
LoadHouseData ( ) : void

Method Details

CreatePlayerHouse() public méthode

public CreatePlayerHouse ( string PlayerName, int houseIndex ) : bool
PlayerName string
houseIndex int
Résultat bool

Disable() public méthode

public Disable ( ) : void
Résultat void

Enable() public méthode

public Enable ( ) : void
Résultat void

GetHouseCoordsIndexByName() public méthode

public GetHouseCoordsIndexByName ( string PlayerName, string HouseName ) : int
PlayerName string
HouseName string
Résultat int

GetHouseNameImInside() public méthode

public GetHouseNameImInside ( Terraria_Server.Player player ) : string
player Terraria_Server.Player
Résultat string

GetMyHouseNameImInside() public méthode

public GetMyHouseNameImInside ( string PlayerName ) : string
PlayerName string
Résultat string

GetMyHouseNamePositionInside() public méthode

public GetMyHouseNamePositionInside ( string PlayerName, int x, int y ) : string
PlayerName string
x int
y int
Résultat string

GetPlayerHouseIndex() public méthode

public GetPlayerHouseIndex ( string PlayerName ) : int
PlayerName string
Résultat int

GetTotalPlayerHouses() public méthode

public GetTotalPlayerHouses ( string PlayerName ) : int
PlayerName string
Résultat int

IsInsideAnotherHouse() public méthode

public IsInsideAnotherHouse ( string PlayerName, int x, int y, int check ) : bool
PlayerName string
x int
y int
check int
Résultat bool

Load() public méthode

public Load ( ) : void
Résultat void

SaveHouseData() public méthode

public SaveHouseData ( ) : void
Résultat void

UpdateCoordsForPlayer() public méthode

public UpdateCoordsForPlayer ( string PlayerName, int x, int y, int houseIndex ) : void
PlayerName string
x int
y int
houseIndex int
Résultat void

onDoorStateChange() public méthode

public onDoorStateChange ( DoorStateChangeEvent Event ) : void
Event DoorStateChangeEvent
Résultat void

onPlayerEditSign() public méthode

public onPlayerEditSign ( PlayerEditSignEvent Event ) : void
Event PlayerEditSignEvent
Résultat void

onPlayerFlowLiquid() public méthode

public onPlayerFlowLiquid ( PlayerFlowLiquidEvent Event ) : void
Event PlayerFlowLiquidEvent
Résultat void

onPlayerOpenChest() public méthode

public onPlayerOpenChest ( PlayerChestOpenEvent Event ) : void
Event PlayerChestOpenEvent
Résultat void

onPlayerTileChange() public méthode

public onPlayerTileChange ( PlayerTileChangeEvent Event ) : void
Event PlayerTileChangeEvent
Résultat void

onTimeChange() public méthode

public onTimeChange ( TimeChangedEvent Event ) : void
Event TimeChangedEvent
Résultat void

validateHouse() public méthode

public validateHouse ( string PlayerName, int houseIndex ) : void
PlayerName string
houseIndex int
Résultat void

Property Details

CHECK_ALLOWED public_oe static_oe property

public static int CHECK_ALLOWED
Résultat int

CHECK_CHEST_LOCK public_oe static_oe property

public static int CHECK_CHEST_LOCK
Résultat int

CHECK_DOOR_LOCK public_oe static_oe property

public static int CHECK_DOOR_LOCK
Résultat int

CHECK_SIGN_LOCK public_oe static_oe property

public static int CHECK_SIGN_LOCK
Résultat int

chatColor public_oe property

public Terraria_Server.Misc.Color chatColor
Résultat Terraria_Server.Misc.Color

houseXML public_oe property

public XmlDocument,System.Xml houseXML
Résultat System.Xml.XmlDocument

lastTime public_oe property

public double lastTime
Résultat double

maxArea public_oe property

public int maxArea
Résultat int

maxHeight public_oe property

public int maxHeight
Résultat int

maxHouses public_oe property

public int maxHouses
Résultat int

minHeight public_oe property

public int minHeight
Résultat int

playerHouses public_oe property

public List playerHouses
Résultat List

playersCanMakeHouses public_oe property

public bool playersCanMakeHouses
Résultat bool

playersCanTeleport public_oe property

public bool playersCanTeleport
Résultat bool

plugin public_oe static_oe property

public static House,House plugin
Résultat House

pluginFolder public_oe property

public string pluginFolder
Résultat string

properties public_oe property

public Properties properties
Résultat Properties

tempHouses public_oe property

public Hashtable,System.Collections tempHouses
Résultat System.Collections.Hashtable

xmlFilename public_oe property

public String xmlFilename
Résultat String

xmlNamespace public_oe property

public String xmlNamespace
Résultat String