C# Класс House.House

Наследование: BasePlugin
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CreateDirectory ( string dirPath ) : void
LoadHouseData ( ) : void

Описание методов

CreatePlayerHouse() публичный Метод

public CreatePlayerHouse ( string PlayerName, int houseIndex ) : bool
PlayerName string
houseIndex int
Результат bool

Disable() публичный Метод

public Disable ( ) : void
Результат void

Enable() публичный Метод

public Enable ( ) : void
Результат void

GetHouseCoordsIndexByName() публичный Метод

public GetHouseCoordsIndexByName ( string PlayerName, string HouseName ) : int
PlayerName string
HouseName string
Результат int

GetHouseNameImInside() публичный Метод

public GetHouseNameImInside ( Terraria_Server.Player player ) : string
player Terraria_Server.Player
Результат string

GetMyHouseNameImInside() публичный Метод

public GetMyHouseNameImInside ( string PlayerName ) : string
PlayerName string
Результат string

GetMyHouseNamePositionInside() публичный Метод

public GetMyHouseNamePositionInside ( string PlayerName, int x, int y ) : string
PlayerName string
x int
y int
Результат string

GetPlayerHouseIndex() публичный Метод

public GetPlayerHouseIndex ( string PlayerName ) : int
PlayerName string
Результат int

GetTotalPlayerHouses() публичный Метод

public GetTotalPlayerHouses ( string PlayerName ) : int
PlayerName string
Результат int

IsInsideAnotherHouse() публичный Метод

public IsInsideAnotherHouse ( string PlayerName, int x, int y, int check ) : bool
PlayerName string
x int
y int
check int
Результат bool

Load() публичный Метод

public Load ( ) : void
Результат void

SaveHouseData() публичный Метод

public SaveHouseData ( ) : void
Результат void

UpdateCoordsForPlayer() публичный Метод

public UpdateCoordsForPlayer ( string PlayerName, int x, int y, int houseIndex ) : void
PlayerName string
x int
y int
houseIndex int
Результат void

onDoorStateChange() публичный Метод

public onDoorStateChange ( DoorStateChangeEvent Event ) : void
Event DoorStateChangeEvent
Результат void

onPlayerEditSign() публичный Метод

public onPlayerEditSign ( PlayerEditSignEvent Event ) : void
Event PlayerEditSignEvent
Результат void

onPlayerFlowLiquid() публичный Метод

public onPlayerFlowLiquid ( PlayerFlowLiquidEvent Event ) : void
Event PlayerFlowLiquidEvent
Результат void

onPlayerOpenChest() публичный Метод

public onPlayerOpenChest ( PlayerChestOpenEvent Event ) : void
Event PlayerChestOpenEvent
Результат void

onPlayerTileChange() публичный Метод

public onPlayerTileChange ( PlayerTileChangeEvent Event ) : void
Event PlayerTileChangeEvent
Результат void

onTimeChange() публичный Метод

public onTimeChange ( TimeChangedEvent Event ) : void
Event TimeChangedEvent
Результат void

validateHouse() публичный Метод

public validateHouse ( string PlayerName, int houseIndex ) : void
PlayerName string
houseIndex int
Результат void

Описание свойств

CHECK_ALLOWED публичное статическое свойство

public static int CHECK_ALLOWED
Результат int

CHECK_CHEST_LOCK публичное статическое свойство

public static int CHECK_CHEST_LOCK
Результат int

CHECK_DOOR_LOCK публичное статическое свойство

public static int CHECK_DOOR_LOCK
Результат int

CHECK_SIGN_LOCK публичное статическое свойство

public static int CHECK_SIGN_LOCK
Результат int

chatColor публичное свойство

public Terraria_Server.Misc.Color chatColor
Результат Terraria_Server.Misc.Color

houseXML публичное свойство

public XmlDocument,System.Xml houseXML
Результат System.Xml.XmlDocument

lastTime публичное свойство

public double lastTime
Результат double

maxArea публичное свойство

public int maxArea
Результат int

maxHeight публичное свойство

public int maxHeight
Результат int

maxHouses публичное свойство

public int maxHouses
Результат int

minHeight публичное свойство

public int minHeight
Результат int

playerHouses публичное свойство

public List playerHouses
Результат List

playersCanMakeHouses публичное свойство

public bool playersCanMakeHouses
Результат bool

playersCanTeleport публичное свойство

public bool playersCanTeleport
Результат bool

plugin публичное статическое свойство

public static House,House plugin
Результат House

pluginFolder публичное свойство

public string pluginFolder
Результат string

properties публичное свойство

public Properties properties
Результат Properties

tempHouses публичное свойство

public Hashtable,System.Collections tempHouses
Результат System.Collections.Hashtable

xmlFilename публичное свойство

public String xmlFilename
Результат String

xmlNamespace публичное свойство

public String xmlNamespace
Результат String