C# Класс Wolfje.Plugins.SEconomy.WorldEconomy

World economy. Provides monetary gain and loss as a result of interaction in the world, including mobs and players.
Наследование: IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
PVPDamage int>.Dictionary
__NPCDamageMutex object
__dictionaryMutex object
__pvpDictMutex object

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

Метод Описание
Dispose ( ) : void
WorldEconomy ( SEconomy parent ) : System

Защищенные методы

Метод Описание
AddNPCDamage ( Terraria NPC, Terraria Player, int Damage, bool crit = false ) : void

Adds damage done by a player to an NPC slot. When the NPC dies the rewards for it will fill out.

Dispose ( bool disposing ) : void
Game_Update ( EventArgs args ) : void
GetDeathPenalty ( TShockAPI.TSPlayer player ) : Money
GiveRewardsForNPC ( Terraria NPC ) : void

Should occur when an NPC dies; gives rewards out to all the players that hit it.

NetHooks_GetData ( TerrariaApi.Server.GetDataEventArgs args ) : void

Occurs when the server has received a message from the client.

NetHooks_SendData ( TerrariaApi.Server.SendDataEventArgs e ) : void

Occurs when the server has a chunk of data to send

PlayerHitPlayer ( int HitterSlot, int VictimSlot ) : void

Assigns the last player slot to a victim in PVP

ProcessDeath ( int DeadPlayerSlot, bool PVPDeath ) : void

Runs when a player dies, and hands out penalties if enabled, and rewards for PVP

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

AddNPCDamage() защищенный Метод

Adds damage done by a player to an NPC slot. When the NPC dies the rewards for it will fill out.
protected AddNPCDamage ( Terraria NPC, Terraria Player, int Damage, bool crit = false ) : void
NPC Terraria
Player Terraria
Damage int
crit bool
Результат void

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

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

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Game_Update() защищенный Метод

protected Game_Update ( EventArgs args ) : void
args System.EventArgs
Результат void

GetDeathPenalty() защищенный Метод

protected GetDeathPenalty ( TShockAPI.TSPlayer player ) : Money
player TShockAPI.TSPlayer
Результат Money

GiveRewardsForNPC() защищенный Метод

Should occur when an NPC dies; gives rewards out to all the players that hit it.
protected GiveRewardsForNPC ( Terraria NPC ) : void
NPC Terraria
Результат void

NetHooks_GetData() защищенный Метод

Occurs when the server has received a message from the client.
protected NetHooks_GetData ( TerrariaApi.Server.GetDataEventArgs args ) : void
args TerrariaApi.Server.GetDataEventArgs
Результат void

NetHooks_SendData() защищенный Метод

Occurs when the server has a chunk of data to send
protected NetHooks_SendData ( TerrariaApi.Server.SendDataEventArgs e ) : void
e TerrariaApi.Server.SendDataEventArgs
Результат void

PlayerHitPlayer() защищенный Метод

Assigns the last player slot to a victim in PVP
protected PlayerHitPlayer ( int HitterSlot, int VictimSlot ) : void
HitterSlot int
VictimSlot int
Результат void

ProcessDeath() защищенный Метод

Runs when a player dies, and hands out penalties if enabled, and rewards for PVP
protected ProcessDeath ( int DeadPlayerSlot, bool PVPDeath ) : void
DeadPlayerSlot int
PVPDeath bool
Результат void

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

public WorldEconomy ( SEconomy parent ) : System
parent SEconomy
Результат System

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

PVPDamage защищенное свойство

Format for this dictionary: * key: Player ID * value: Last player hit ID
protected Dictionary PVPDamage
Результат int>.Dictionary

__NPCDamageMutex защищенное статическое свойство

Synch object for NPC damage, forcing NPC damages to be serialized
protected static object __NPCDamageMutex
Результат object

__dictionaryMutex защищенное свойство

synch object for access to the dictionary. You MUST obtain a mutex through this object to access the dictionary member.
protected object __dictionaryMutex
Результат object

__pvpDictMutex защищенное свойство

synch object for access to the pvp dictionary. You MUST obtain a mutex through this object to access the dictionary member.
protected object __pvpDictMutex
Результат object