C# Класс TShockAPI.GetDataHandlers

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

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

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

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

Метод Описание
HandlePlayerHp ( GetDataHandlerArgs args ) : bool
HandlerGetData ( PacketTypes type, TShockAPI.TSPlayer player, MemoryStream data ) : bool
InitGetDataHandler ( ) : void
TSCheckNoclip ( Vector2 Position, int Width, int Height ) : bool

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

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

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

HandlePlayerHp() публичный статический Метод

public static HandlePlayerHp ( GetDataHandlerArgs args ) : bool
args GetDataHandlerArgs
Результат bool

HandlerGetData() публичный статический Метод

public static HandlerGetData ( PacketTypes type, TShockAPI.TSPlayer player, MemoryStream data ) : bool
type PacketTypes
player TShockAPI.TSPlayer
data System.IO.MemoryStream
Результат bool

InitGetDataHandler() публичный статический Метод

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

TSCheckNoclip() публичный статический Метод

public static TSCheckNoclip ( Vector2 Position, int Width, int Height ) : bool
Position Vector2
Width int
Height int
Результат bool

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

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

ChestItemChange - Called when an item in a chest changes
public static HandlerList ChestItemChange
Результат HandlerList

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

ChestOpen - Called when any chest is opened
public static HandlerList ChestOpen
Результат HandlerList

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

GemLockToggle - Called when a gem lock is switched
public static HandlerList GemLockToggle
Результат HandlerList

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

ItemDrop - Called when an item is dropped
public static HandlerList ItemDrop
Результат HandlerList

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

KillMe - Terraria's crappy way of handling damage from players
public static HandlerList KillMe
Результат HandlerList

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

LiquidSet - When ever a liquid is set
public static HandlerList LiquidSet
Результат HandlerList

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

The maximum place styles for each tile.
public static Dictionary MaxPlaceStyles
Результат int>.Dictionary

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

NPCHome - Called when an NPC's home is changed
public static HandlerList NPCHome
Результат HandlerList

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

NPCSpecial - Called at some point
public static HandlerList NPCSpecial
Результат HandlerList

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

NPCStrike - Called when an NPC is attacked
public static HandlerList NPCStrike
Результат HandlerList

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

NewProjectile - Called when a client creates a new projectile
public static HandlerList NewProjectile
Результат HandlerList

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

NPCStrike - Called when an NPC is attacked
public static HandlerList PaintTile
Результат HandlerList

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

Called When a wall is painted
public static HandlerList PaintWall
Результат HandlerList

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

PlayerAnimation - Called when a player animates
public static HandlerList PlayerAnimation
Результат HandlerList

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

PlayerBuff - Called when a player is buffed
public static HandlerList PlayerBuff
Результат HandlerList

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

PlayerBuffUpdate - Called when a player updates buffs
public static HandlerList PlayerBuffUpdate
Результат HandlerList

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

PlayerDamage - Called when a player is damaged
public static HandlerList PlayerDamage
Результат HandlerList

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

PlayerHP - called at a PlayerHP event
public static HandlerList PlayerHP
Результат HandlerList

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

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
Результат HandlerList

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

PlayerMana - called at a PlayerMana event
public static HandlerList PlayerMana
Результат HandlerList

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

PlayerSlot - called at a PlayerSlot event
public static HandlerList PlayerSlot
Результат HandlerList

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

PlayerSpawn - When a player spawns
public static HandlerList PlayerSpawn
Результат HandlerList

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

TogglePvp - called when a player toggles pvp
public static HandlerList PlayerTeam
Результат HandlerList

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

PlayerUpdate - When the player sends it's updated information to the server
public static HandlerList PlayerUpdate
Результат HandlerList

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

SendTileSquare - When the player sends a tile square
public static HandlerList SendTileSquare
Результат HandlerList

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

Sign - Called when a sign is changed
public static HandlerList Sign
Результат HandlerList

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

NPCStrike - Called when an NPC is attacked
public static HandlerList Teleport
Результат HandlerList

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

TileEdit - called when a tile is placed or destroyed
public static HandlerList TileEdit
Результат HandlerList

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

TileKill - When a tile is removed from the world
public static HandlerList TileKill
Результат HandlerList

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

TogglePvp - called when a player toggles pvp
public static HandlerList TogglePvp
Результат HandlerList

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

public static int[] WhitelistBuffMaxTime
Результат int[]