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
파일 보기 프로젝트 열기: tylerjwatson/SEconomy

보호된 프로퍼티들

프로퍼티 타입 설명
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