C# Class TShockAPI.GetDataHandlers

ファイルを表示 Open project: NyxStudios/TShock Class Usage Examples

Public Properties

Property Type Description
ChestItemChange HandlerList
ChestOpen HandlerList
GemLockToggle HandlerList
ItemDrop HandlerList
KillMe HandlerList
LiquidSet HandlerList
MaxPlaceStyles int>.Dictionary
NPCHome HandlerList
NPCSpecial HandlerList
NPCStrike HandlerList
NewProjectile HandlerList
PaintTile HandlerList
PaintWall HandlerList
PlayerAnimation HandlerList
PlayerBuff HandlerList
PlayerBuffUpdate HandlerList
PlayerDamage HandlerList
PlayerHP HandlerList
PlayerInfo HandlerList
PlayerMana HandlerList
PlayerSlot HandlerList
PlayerSpawn HandlerList
PlayerTeam HandlerList
PlayerUpdate HandlerList
SendTileSquare HandlerList
Sign HandlerList
Teleport HandlerList
TileEdit HandlerList
TileKill HandlerList
TogglePvp HandlerList
WhitelistBuffMaxTime int[]

Public Methods

Method Description
HandlePlayerHp ( GetDataHandlerArgs args ) : bool
HandlerGetData ( PacketTypes type, TShockAPI.TSPlayer player, MemoryStream data ) : bool
InitGetDataHandler ( ) : void
TSCheckNoclip ( Vector2 Position, int Width, int Height ) : bool

Private Methods

Method Description
HandleCatchNpc ( GetDataHandlerArgs args ) : bool
HandleChestActive ( GetDataHandlerArgs args ) : bool
HandleChestItem ( GetDataHandlerArgs args ) : bool
HandleChestOpen ( GetDataHandlerArgs args ) : bool
HandleCompleteAnglerQuest ( GetDataHandlerArgs args ) : bool
HandleConnecting ( GetDataHandlerArgs args ) : bool
HandleDoorUse ( GetDataHandlerArgs args ) : bool
HandleGemLockToggle ( GetDataHandlerArgs args ) : bool
HandleGetSection ( GetDataHandlerArgs args ) : bool
HandleItemDrop ( GetDataHandlerArgs args ) : bool
HandleItemOwner ( GetDataHandlerArgs args ) : bool
HandleKillPortal ( GetDataHandlerArgs args ) : bool
HandleLiquidSet ( GetDataHandlerArgs args ) : bool
HandleLoadNetModule ( GetDataHandlerArgs args ) : bool
HandleMassWireOperation ( GetDataHandlerArgs args ) : bool
HandleNpcStrike ( GetDataHandlerArgs args ) : bool
HandleNpcTeleportPortal ( GetDataHandlerArgs args ) : bool
HandleNumberOfAnglerQuestsCompleted ( GetDataHandlerArgs args ) : bool
HandlePaintTile ( GetDataHandlerArgs args ) : bool
HandlePaintWall ( GetDataHandlerArgs args ) : bool
HandlePassword ( GetDataHandlerArgs args ) : bool
HandlePlaceItemFrame ( GetDataHandlerArgs args ) : bool
HandlePlaceObject ( GetDataHandlerArgs args ) : bool

Handle PlaceObject event

HandlePlaceTileEntity ( GetDataHandlerArgs args ) : bool
HandlePlayerAddBuff ( GetDataHandlerArgs args ) : bool
HandlePlayerAnimation ( GetDataHandlerArgs args ) : bool
HandlePlayerBuffList ( GetDataHandlerArgs args ) : bool
HandlePlayerDamage ( GetDataHandlerArgs args ) : bool
HandlePlayerInfo ( GetDataHandlerArgs args ) : bool
HandlePlayerKillMe ( GetDataHandlerArgs args ) : bool
HandlePlayerMana ( GetDataHandlerArgs args ) : bool
HandlePlayerSlot ( GetDataHandlerArgs args ) : bool
HandlePlayerTeam ( GetDataHandlerArgs args ) : bool
HandlePlayerUpdate ( GetDataHandlerArgs args ) : bool
HandleProjectileKill ( GetDataHandlerArgs args ) : bool
HandleProjectileNew ( GetDataHandlerArgs args ) : bool
HandleSendTileSquare ( GetDataHandlerArgs args ) : bool
HandleSign ( GetDataHandlerArgs args ) : bool
HandleSpawn ( GetDataHandlerArgs args ) : bool
HandleSpawnBoss ( GetDataHandlerArgs args ) : bool
HandleSpecial ( GetDataHandlerArgs args ) : bool
HandleSyncExtraValue ( GetDataHandlerArgs args ) : bool
HandleTeleport ( GetDataHandlerArgs args ) : bool
HandleTile ( GetDataHandlerArgs args ) : bool
HandleTileKill ( GetDataHandlerArgs args ) : bool
HandleToggleParty ( GetDataHandlerArgs args ) : bool
HandleTogglePvp ( GetDataHandlerArgs args ) : bool
OnChestItemChange ( short id, byte slot, short stacks, byte prefix, short type ) : bool
OnChestOpen ( int x, int y, TShockAPI.TSPlayer player ) : bool
OnGemLockToggle ( Int32 x, Int32 y, bool on ) : bool
OnItemDrop ( short id, Vector2 pos, Vector2 vel, short stacks, byte prefix, bool noDelay, short type ) : bool
OnKillMe ( byte plr, byte direction, short damage, bool pvp ) : bool
OnLiquidSet ( int tilex, int tiley, byte amount, byte type ) : bool
OnNPCSpecial ( byte id, byte type ) : bool
OnNPCStrike ( short id, byte dir, short dmg, float knockback, byte crit ) : bool
OnNewProjectile ( short ident, Vector2 pos, Vector2 vel, float knockback, short dmg, byte owner, short type, int index ) : bool
OnPaintTile ( Int32 x, Int32 y, byte t ) : bool
OnPaintWall ( Int32 x, Int32 y, byte t ) : bool
OnPlayerAnimation ( ) : bool
OnPlayerBuff ( byte id, byte type, short time ) : bool
OnPlayerBuffUpdate ( byte id ) : bool
OnPlayerDamage ( byte id, byte dir, short dmg, bool pvp, bool crit ) : bool
OnPlayerHP ( byte _plr, short _cur, short _max ) : bool
OnPlayerInfo ( byte _plrid, byte _hair, int _style, byte _difficulty, string _name ) : bool
OnPlayerMana ( byte _plr, short _cur, short _max ) : bool
OnPlayerSlot ( byte _plr, byte _slot, short _stack, byte _prefix, short _type ) : bool
OnPlayerSpawn ( byte player, int spawnX, int spawnY ) : bool
OnPlayerTeam ( byte _id, byte _team ) : bool
OnPlayerUpdate ( byte player, byte control, byte item, Vector2 position, Vector2 velocity, byte pulley ) : bool
OnPvpToggled ( byte _id, bool _pvp ) : bool
OnSendTileSquare ( short size, int tilex, int tiley ) : bool
OnSignEvent ( short id, int x, int y ) : bool
OnTeleport ( Int16 id, byte f, float x, float y ) : bool
OnTileEdit ( TShockAPI.TSPlayer ply, int x, int y, EditAction action, EditType editDetail, short editData, byte style ) : bool
OnTileKill ( int tilex, int tiley ) : bool
OnUpdateNPCHome ( short id, short x, short y, byte homeless ) : bool
UpdateNPCHome ( GetDataHandlerArgs args ) : bool

Method Details

HandlePlayerHp() public static method

public static HandlePlayerHp ( GetDataHandlerArgs args ) : bool
args GetDataHandlerArgs
return bool

HandlerGetData() public static method

public static HandlerGetData ( PacketTypes type, TShockAPI.TSPlayer player, MemoryStream data ) : bool
type PacketTypes
player TShockAPI.TSPlayer
data System.IO.MemoryStream
return bool

InitGetDataHandler() public static method

public static InitGetDataHandler ( ) : void
return void

TSCheckNoclip() public static method

public static TSCheckNoclip ( Vector2 Position, int Width, int Height ) : bool
Position Vector2
Width int
Height int
return bool

Property Details

ChestItemChange public_oe static_oe property

ChestItemChange - Called when an item in a chest changes
public static HandlerList ChestItemChange
return HandlerList

ChestOpen public_oe static_oe property

ChestOpen - Called when any chest is opened
public static HandlerList ChestOpen
return HandlerList

GemLockToggle public_oe static_oe property

GemLockToggle - Called when a gem lock is switched
public static HandlerList GemLockToggle
return HandlerList

ItemDrop public_oe static_oe property

ItemDrop - Called when an item is dropped
public static HandlerList ItemDrop
return HandlerList

KillMe public_oe static_oe property

KillMe - Terraria's crappy way of handling damage from players
public static HandlerList KillMe
return HandlerList

LiquidSet public_oe static_oe property

LiquidSet - When ever a liquid is set
public static HandlerList LiquidSet
return HandlerList

MaxPlaceStyles public_oe static_oe property

The maximum place styles for each tile.
public static Dictionary MaxPlaceStyles
return int>.Dictionary

NPCHome public_oe static_oe property

NPCHome - Called when an NPC's home is changed
public static HandlerList NPCHome
return HandlerList

NPCSpecial public_oe static_oe property

NPCSpecial - Called at some point
public static HandlerList NPCSpecial
return HandlerList

NPCStrike public_oe static_oe property

NPCStrike - Called when an NPC is attacked
public static HandlerList NPCStrike
return HandlerList

NewProjectile public_oe static_oe property

NewProjectile - Called when a client creates a new projectile
public static HandlerList NewProjectile
return HandlerList

PaintTile public_oe static_oe property

NPCStrike - Called when an NPC is attacked
public static HandlerList PaintTile
return HandlerList

PaintWall public_oe static_oe property

Called When a wall is painted
public static HandlerList PaintWall
return HandlerList

PlayerAnimation public_oe static_oe property

PlayerAnimation - Called when a player animates
public static HandlerList PlayerAnimation
return HandlerList

PlayerBuff public_oe static_oe property

PlayerBuff - Called when a player is buffed
public static HandlerList PlayerBuff
return HandlerList

PlayerBuffUpdate public_oe static_oe property

PlayerBuffUpdate - Called when a player updates buffs
public static HandlerList PlayerBuffUpdate
return HandlerList

PlayerDamage public_oe static_oe property

PlayerDamage - Called when a player is damaged
public static HandlerList PlayerDamage
return HandlerList

PlayerHP public_oe static_oe property

PlayerHP - called at a PlayerHP event
public static HandlerList PlayerHP
return HandlerList

PlayerInfo public_oe static_oe property

PlayerInfo - called at a PlayerInfo event If this is cancelled, the server will ForceKick the player. If this should be changed in the future, let someone know.
public static HandlerList PlayerInfo
return HandlerList

PlayerMana public_oe static_oe property

PlayerMana - called at a PlayerMana event
public static HandlerList PlayerMana
return HandlerList

PlayerSlot public_oe static_oe property

PlayerSlot - called at a PlayerSlot event
public static HandlerList PlayerSlot
return HandlerList

PlayerSpawn public_oe static_oe property

PlayerSpawn - When a player spawns
public static HandlerList PlayerSpawn
return HandlerList

PlayerTeam public_oe static_oe property

TogglePvp - called when a player toggles pvp
public static HandlerList PlayerTeam
return HandlerList

PlayerUpdate public_oe static_oe property

PlayerUpdate - When the player sends it's updated information to the server
public static HandlerList PlayerUpdate
return HandlerList

SendTileSquare public_oe static_oe property

SendTileSquare - When the player sends a tile square
public static HandlerList SendTileSquare
return HandlerList

Sign public_oe static_oe property

Sign - Called when a sign is changed
public static HandlerList Sign
return HandlerList

Teleport public_oe static_oe property

NPCStrike - Called when an NPC is attacked
public static HandlerList Teleport
return HandlerList

TileEdit public_oe static_oe property

TileEdit - called when a tile is placed or destroyed
public static HandlerList TileEdit
return HandlerList

TileKill public_oe static_oe property

TileKill - When a tile is removed from the world
public static HandlerList TileKill
return HandlerList

TogglePvp public_oe static_oe property

TogglePvp - called when a player toggles pvp
public static HandlerList TogglePvp
return HandlerList

WhitelistBuffMaxTime public_oe static_oe property

public static int[] WhitelistBuffMaxTime
return int[]