C# Class tdsm.core.Messages.Out.NewNetMessage

Afficher le fichier Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod Class Usage Examples

Private Properties

Свойство Type Description
CompressedTileBody void
CompressedTileFlags byte
Tile void
Tile void
TileSize int

Méthodes publiques

Méthode Description
AngerQuestsFinished ( int number ) : void
AnglerQuest ( string text ) : void
Begin ( ) : void
Begin ( Packet id ) : void
Begin ( int id ) : void
Bool ( bool data ) : void
BootPlayer ( int plr, string msg ) : void
Broadcast ( ) : void
Broadcast ( byte bytes ) : void
BroadcastExcept ( byte bytes, int i ) : void
BroadcastExcept ( int i ) : void
BuildPlayerUpdate ( int i ) : void
Byte ( bool data ) : void
Byte ( byte data ) : void
Byte ( byte data, int length ) : void
Byte ( int data ) : void
CatchNPC ( int number, float number2 ) : void
ChestItem ( int chestId, int itemId ) : void
ChestUnlock ( int playerId, int param, int x, int y ) : void
Clear ( ) : void
Color ( Color data ) : void
ConnectionRequest ( string version ) : void
ConnectionResponse ( int clientId ) : void
DamageNPC ( int npcId, int damage, float knockback, int direction, bool crit = false ) : void
Disconnect ( string reason ) : void
DoorUpdate ( int doorAction, int x, int y, int doorDirection ) : void
End ( ) : void
EnterZone ( int playerId ) : void
Float ( float data ) : void
FloatUnsafe ( float data ) : void
FlowLiquid ( int x, int y ) : void
HealPlayer ( int playerId, int amount ) : void
HitSwitch ( short x, short y ) : void
Int ( double data ) : void
Int ( int data ) : void
InventoryData ( int playerId, int invId, int prefix ) : void
ItemInfo ( int itemId, byte number2 ) : void
ItemOwnerInfo ( int itemId ) : void
ItemOwnerUpdate ( int itemId ) : void
KillPlayerPVP ( int victimId, string deathText, int direction, int damage, int pvpFlag ) : void
KillProjectile ( int identity, int owner ) : void
KillTile ( int number, float number2, float number3, float number4, int number5 ) : void
NPCAddBuff ( int npcId, int type, int time ) : void
NPCBuffs ( int npcId ) : void
NPCHome ( int npcId, int homeTileX, int homeTileY, bool homeless ) : void
NPCInfo ( int npcId ) : void
NPCName ( int id, string text ) : void
NPCTalk ( int playerId ) : void
NewNetMessage ( int bufSize = 65535 ) : System
OnPlayerJoined ( int plr ) : void
OnPlayerLeft ( Player player, ServerSlot slot, bool announced ) : void
OpenChest ( ) : void
Packet63 ( ) : void
Packet68 ( ) : void
Packet69 ( string text, int number, float number2, float number3, float number4, int number5 ) : void
PaintWall ( int number, float number2, float number3 ) : void
PasswordRequest ( ) : void
PasswordResponse ( ) : void
PlayHarp ( int playerId, float note ) : void
PlayerAddBuff ( int playerId, int type, int time ) : void
PlayerBallswing ( int playerId ) : void
PlayerBuffs ( int playerId ) : void
PlayerChat ( int playerId, string text, int r, int g, int b ) : void
PlayerChestUpdate ( int chestId, string text ) : void
PlayerData ( int playerId ) : void
PlayerDodge ( int number, float number2 ) : void
PlayerHealthUpdate ( int playerId ) : void
PlayerJoinParty ( int playerId ) : void
PlayerManaUpdate ( int playerId ) : void
PlayerPVPChange ( int playerId ) : void
PlayerStateUpdate ( int playerId ) : void
PlayerStateUpdate ( int playerId, float px, float py ) : void
PlayerUseManaUpdate ( int playerId, int amount ) : void
PrepareThreadInstance ( ) : NewNetMessage
PrepareThreadInstance ( int size ) : NewNetMessage
Projectile ( Projectile proj ) : void
ReadSign ( int x, int y ) : void
ReceivingPlayerJoined ( int playerId ) : void
ReceivingPlayerJoined ( int playerId, int sx, int sy ) : void
ReleaseNPC ( int number, float number2, float number3, float number4 ) : void
RequestTileBlock ( ) : void
SByte ( sbyte data ) : void
Send ( tdsm.api.ClientConnection conn ) : void
Send ( int i ) : void
SendData ( Packet packet, int remoteClient = -1, int ignoreClient = -1, string text = "", int number, float number2 = 0f, float number3 = 0f, float number4 = 0f, int number5 ) : int
SendData ( int packetId, int remoteClient = -1, int ignoreClient = -1, string text = "", int number, float number2 = 0f, float number3 = 0f, float number4 = 0f, int number5 ) : int
SendSection ( int whoAmi, int sectionX, int sectionY ) : void
SendSection ( int whoAmi, int sectionX, int sectionY, bool skipSent = false ) : void
SendSpawn ( ) : void
SendSyncOthersForPlayer ( int i ) : void
SendSyncPlayerForOthers ( int i ) : void
SendTileConfirm ( int sectionX, int sectionY, int sectionXAgain, int sectionYAgain ) : void
SendTileLoading ( int number, string text ) : void
SendTileRowCompressed ( int xStart, int yStart, short width, short height, bool packChests ) : void
SendTileSquare ( int whoAmi, int tileX, int tileY, int size ) : void
SendTileSquare ( int whoAmi, int x, int y, int size, bool centered ) : void
SendWater ( int x, int y ) : void
Short ( int data ) : void
Short ( short data ) : void
SingleTileSquare ( int X, int Y, Tile tile ) : void
StrikeNPC ( int npcId, int playerId ) : void
StrikePlayer ( int victimId, string deathText, int direction, int damage, int pvpFlag, bool crit = false ) : void
String ( string data, bool newLineOverride = false, bool useUTF = false ) : void
SummonSkeletron ( int action, int param ) : void
SyncAllNPCHomes ( ) : void
SyncNPCHome ( int npcIndex ) : void
SyncNPCHomes ( ) : void
SyncPlayers ( ) : void
SynchBegin ( int playerId, int active ) : void
Teleport ( int number, float number2, float number3, float number4, int number5 ) : void
TileBreak ( int tileAction, int x, int y, int tileType, int style ) : void
TileRowCompressed ( int numColumns, int firstColumn, int row ) : void
TileRowSize ( int numColumns, int firstColumn, int row ) : int
TileSquare ( int size, int X, int Y ) : void
TimeSunMoonUpdate ( ) : void
TravelShop ( ) : void
UShort ( ushort data ) : void
UpdatePlayers ( ) : void
WorldBalance ( byte good, byte evil, byte blood ) : void
WorldData ( ) : void
WorldData ( bool hardMode ) : void
WorldData ( int spawnX, int spawnY ) : void
WorldData ( int spawnX, int spawnY, bool hardMode ) : void
WorldRequest ( ) : void
WriteSign ( int signId ) : void
WriteSign ( int signId, int x, int y, string text ) : void

Private Methods

Méthode Description
CompressedTileBody ( byte flags, Tile tile ) : void
CompressedTileFlags ( Tile tile, Tile last ) : byte
Tile ( Tile tile ) : void
Tile ( int x, int y ) : void
TileSize ( Tile tile ) : int

Method Details

AngerQuestsFinished() public méthode

public AngerQuestsFinished ( int number ) : void
number int
Résultat void

AnglerQuest() public méthode

public AnglerQuest ( string text ) : void
text string
Résultat void

Begin() public méthode

public Begin ( ) : void
Résultat void

Begin() public méthode

public Begin ( Packet id ) : void
id Packet
Résultat void

Begin() public méthode

public Begin ( int id ) : void
id int
Résultat void

Bool() public méthode

public Bool ( bool data ) : void
data bool
Résultat void

BootPlayer() public static méthode

public static BootPlayer ( int plr, string msg ) : void
plr int
msg string
Résultat void

Broadcast() public méthode

public Broadcast ( ) : void
Résultat void

Broadcast() public static méthode

public static Broadcast ( byte bytes ) : void
bytes byte
Résultat void

BroadcastExcept() public static méthode

public static BroadcastExcept ( byte bytes, int i ) : void
bytes byte
i int
Résultat void

BroadcastExcept() public méthode

public BroadcastExcept ( int i ) : void
i int
Résultat void

BuildPlayerUpdate() public méthode

public BuildPlayerUpdate ( int i ) : void
i int
Résultat void

Byte() public méthode

public Byte ( bool data ) : void
data bool
Résultat void

Byte() public méthode

public Byte ( byte data ) : void
data byte
Résultat void

Byte() public méthode

public Byte ( byte data, int length ) : void
data byte
length int
Résultat void

Byte() public méthode

public Byte ( int data ) : void
data int
Résultat void

CatchNPC() public méthode

public CatchNPC ( int number, float number2 ) : void
number int
number2 float
Résultat void

ChestItem() public méthode

public ChestItem ( int chestId, int itemId ) : void
chestId int
itemId int
Résultat void

ChestUnlock() public méthode

public ChestUnlock ( int playerId, int param, int x, int y ) : void
playerId int
param int
x int
y int
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Color() public méthode

public Color ( Color data ) : void
data Color
Résultat void

ConnectionRequest() public méthode

public ConnectionRequest ( string version ) : void
version string
Résultat void

ConnectionResponse() public méthode

public ConnectionResponse ( int clientId ) : void
clientId int
Résultat void

DamageNPC() public méthode

public DamageNPC ( int npcId, int damage, float knockback, int direction, bool crit = false ) : void
npcId int
damage int
knockback float
direction int
crit bool
Résultat void

Disconnect() public méthode

public Disconnect ( string reason ) : void
reason string
Résultat void

DoorUpdate() public méthode

public DoorUpdate ( int doorAction, int x, int y, int doorDirection ) : void
doorAction int
x int
y int
doorDirection int
Résultat void

End() public méthode

public End ( ) : void
Résultat void

EnterZone() public méthode

public EnterZone ( int playerId ) : void
playerId int
Résultat void

Float() public méthode

public Float ( float data ) : void
data float
Résultat void

FloatUnsafe() public méthode

public FloatUnsafe ( float data ) : void
data float
Résultat void

FlowLiquid() public méthode

public FlowLiquid ( int x, int y ) : void
x int
y int
Résultat void

HealPlayer() public méthode

public HealPlayer ( int playerId, int amount ) : void
playerId int
amount int
Résultat void

HitSwitch() public méthode

public HitSwitch ( short x, short y ) : void
x short
y short
Résultat void

Int() public méthode

public Int ( double data ) : void
data double
Résultat void

Int() public méthode

public Int ( int data ) : void
data int
Résultat void

InventoryData() public méthode

public InventoryData ( int playerId, int invId, int prefix ) : void
playerId int
invId int
prefix int
Résultat void

ItemInfo() public méthode

public ItemInfo ( int itemId, byte number2 ) : void
itemId int
number2 byte
Résultat void

ItemOwnerInfo() public méthode

public ItemOwnerInfo ( int itemId ) : void
itemId int
Résultat void

ItemOwnerUpdate() public méthode

public ItemOwnerUpdate ( int itemId ) : void
itemId int
Résultat void

KillPlayerPVP() public méthode

public KillPlayerPVP ( int victimId, string deathText, int direction, int damage, int pvpFlag ) : void
victimId int
deathText string
direction int
damage int
pvpFlag int
Résultat void

KillProjectile() public méthode

public KillProjectile ( int identity, int owner ) : void
identity int
owner int
Résultat void

KillTile() public méthode

public KillTile ( int number, float number2, float number3, float number4, int number5 ) : void
number int
number2 float
number3 float
number4 float
number5 int
Résultat void

NPCAddBuff() public méthode

public NPCAddBuff ( int npcId, int type, int time ) : void
npcId int
type int
time int
Résultat void

NPCBuffs() public méthode

public NPCBuffs ( int npcId ) : void
npcId int
Résultat void

NPCHome() public méthode

public NPCHome ( int npcId, int homeTileX, int homeTileY, bool homeless ) : void
npcId int
homeTileX int
homeTileY int
homeless bool
Résultat void

NPCInfo() public méthode

public NPCInfo ( int npcId ) : void
npcId int
Résultat void

NPCName() public méthode

public NPCName ( int id, string text ) : void
id int
text string
Résultat void

NPCTalk() public méthode

public NPCTalk ( int playerId ) : void
playerId int
Résultat void

NewNetMessage() public méthode

public NewNetMessage ( int bufSize = 65535 ) : System
bufSize int
Résultat System

OnPlayerJoined() public static méthode

public static OnPlayerJoined ( int plr ) : void
plr int
Résultat void

OnPlayerLeft() public static méthode

public static OnPlayerLeft ( Player player, ServerSlot slot, bool announced ) : void
player Terraria.Player
slot ServerSlot
announced bool
Résultat void

OpenChest() public méthode

public OpenChest ( ) : void
Résultat void

Packet63() public méthode

public Packet63 ( ) : void
Résultat void

Packet68() public méthode

public Packet68 ( ) : void
Résultat void

Packet69() public méthode

public Packet69 ( string text, int number, float number2, float number3, float number4, int number5 ) : void
text string
number int
number2 float
number3 float
number4 float
number5 int
Résultat void

PaintWall() public méthode

public PaintWall ( int number, float number2, float number3 ) : void
number int
number2 float
number3 float
Résultat void

PasswordRequest() public méthode

public PasswordRequest ( ) : void
Résultat void

PasswordResponse() public méthode

public PasswordResponse ( ) : void
Résultat void

PlayHarp() public méthode

public PlayHarp ( int playerId, float note ) : void
playerId int
note float
Résultat void

PlayerAddBuff() public méthode

public PlayerAddBuff ( int playerId, int type, int time ) : void
playerId int
type int
time int
Résultat void

PlayerBallswing() public méthode

public PlayerBallswing ( int playerId ) : void
playerId int
Résultat void

PlayerBuffs() public méthode

public PlayerBuffs ( int playerId ) : void
playerId int
Résultat void

PlayerChat() public méthode

public PlayerChat ( int playerId, string text, int r, int g, int b ) : void
playerId int
text string
r int
g int
b int
Résultat void

PlayerChestUpdate() public méthode

public PlayerChestUpdate ( int chestId, string text ) : void
chestId int
text string
Résultat void

PlayerData() public méthode

public PlayerData ( int playerId ) : void
playerId int
Résultat void

PlayerDodge() public méthode

public PlayerDodge ( int number, float number2 ) : void
number int
number2 float
Résultat void

PlayerHealthUpdate() public méthode

public PlayerHealthUpdate ( int playerId ) : void
playerId int
Résultat void

PlayerJoinParty() public méthode

public PlayerJoinParty ( int playerId ) : void
playerId int
Résultat void

PlayerManaUpdate() public méthode

public PlayerManaUpdate ( int playerId ) : void
playerId int
Résultat void

PlayerPVPChange() public méthode

public PlayerPVPChange ( int playerId ) : void
playerId int
Résultat void

PlayerStateUpdate() public méthode

public PlayerStateUpdate ( int playerId ) : void
playerId int
Résultat void

PlayerStateUpdate() public méthode

public PlayerStateUpdate ( int playerId, float px, float py ) : void
playerId int
px float
py float
Résultat void

PlayerUseManaUpdate() public méthode

public PlayerUseManaUpdate ( int playerId, int amount ) : void
playerId int
amount int
Résultat void

PrepareThreadInstance() public static méthode

public static PrepareThreadInstance ( ) : NewNetMessage
Résultat NewNetMessage

PrepareThreadInstance() public static méthode

public static PrepareThreadInstance ( int size ) : NewNetMessage
size int
Résultat NewNetMessage

Projectile() public méthode

public Projectile ( Projectile proj ) : void
proj Terraria.Projectile
Résultat void

ReadSign() public méthode

public ReadSign ( int x, int y ) : void
x int
y int
Résultat void

ReceivingPlayerJoined() public méthode

public ReceivingPlayerJoined ( int playerId ) : void
playerId int
Résultat void

ReceivingPlayerJoined() public méthode

public ReceivingPlayerJoined ( int playerId, int sx, int sy ) : void
playerId int
sx int
sy int
Résultat void

ReleaseNPC() public méthode

public ReleaseNPC ( int number, float number2, float number3, float number4 ) : void
number int
number2 float
number3 float
number4 float
Résultat void

RequestTileBlock() public méthode

public RequestTileBlock ( ) : void
Résultat void

SByte() public méthode

public SByte ( sbyte data ) : void
data sbyte
Résultat void

Send() public méthode

public Send ( tdsm.api.ClientConnection conn ) : void
conn tdsm.api.ClientConnection
Résultat void

Send() public méthode

public Send ( int i ) : void
i int
Résultat void

SendData() public static méthode

public static SendData ( Packet packet, int remoteClient = -1, int ignoreClient = -1, string text = "", int number, float number2 = 0f, float number3 = 0f, float number4 = 0f, int number5 ) : int
packet Packet
remoteClient int
ignoreClient int
text string
number int
number2 float
number3 float
number4 float
number5 int
Résultat int

SendData() public static méthode

public static SendData ( int packetId, int remoteClient = -1, int ignoreClient = -1, string text = "", int number, float number2 = 0f, float number3 = 0f, float number4 = 0f, int number5 ) : int
packetId int
remoteClient int
ignoreClient int
text string
number int
number2 float
number3 float
number4 float
number5 int
Résultat int

SendSection() public static méthode

public static SendSection ( int whoAmi, int sectionX, int sectionY ) : void
whoAmi int
sectionX int
sectionY int
Résultat void

SendSection() public static méthode

public static SendSection ( int whoAmi, int sectionX, int sectionY, bool skipSent = false ) : void
whoAmi int
sectionX int
sectionY int
skipSent bool
Résultat void

SendSpawn() public méthode

public SendSpawn ( ) : void
Résultat void

SendSyncOthersForPlayer() public méthode

public SendSyncOthersForPlayer ( int i ) : void
i int
Résultat void

SendSyncPlayerForOthers() public méthode

public SendSyncPlayerForOthers ( int i ) : void
i int
Résultat void

SendTileConfirm() public méthode

public SendTileConfirm ( int sectionX, int sectionY, int sectionXAgain, int sectionYAgain ) : void
sectionX int
sectionY int
sectionXAgain int
sectionYAgain int
Résultat void

SendTileLoading() public méthode

public SendTileLoading ( int number, string text ) : void
number int
text string
Résultat void

SendTileRowCompressed() public méthode

public SendTileRowCompressed ( int xStart, int yStart, short width, short height, bool packChests ) : void
xStart int
yStart int
width short
height short
packChests bool
Résultat void

SendTileSquare() public static méthode

public static SendTileSquare ( int whoAmi, int tileX, int tileY, int size ) : void
whoAmi int
tileX int
tileY int
size int
Résultat void

SendTileSquare() public static méthode

public static SendTileSquare ( int whoAmi, int x, int y, int size, bool centered ) : void
whoAmi int
x int
y int
size int
centered bool
Résultat void

SendWater() public static méthode

public static SendWater ( int x, int y ) : void
x int
y int
Résultat void

Short() public méthode

public Short ( int data ) : void
data int
Résultat void

Short() public méthode

public Short ( short data ) : void
data short
Résultat void

SingleTileSquare() public méthode

public SingleTileSquare ( int X, int Y, Tile tile ) : void
X int
Y int
tile Terraria.Tile
Résultat void

StrikeNPC() public méthode

public StrikeNPC ( int npcId, int playerId ) : void
npcId int
playerId int
Résultat void

StrikePlayer() public méthode

public StrikePlayer ( int victimId, string deathText, int direction, int damage, int pvpFlag, bool crit = false ) : void
victimId int
deathText string
direction int
damage int
pvpFlag int
crit bool
Résultat void

String() public méthode

public String ( string data, bool newLineOverride = false, bool useUTF = false ) : void
data string
newLineOverride bool
useUTF bool
Résultat void

SummonSkeletron() public méthode

public SummonSkeletron ( int action, int param ) : void
action int
param int
Résultat void

SyncAllNPCHomes() public méthode

public SyncAllNPCHomes ( ) : void
Résultat void

SyncNPCHome() public méthode

public SyncNPCHome ( int npcIndex ) : void
npcIndex int
Résultat void

SyncNPCHomes() public static méthode

public static SyncNPCHomes ( ) : void
Résultat void

SyncPlayers() public static méthode

public static SyncPlayers ( ) : void
Résultat void

SynchBegin() public méthode

public SynchBegin ( int playerId, int active ) : void
playerId int
active int
Résultat void

Teleport() public méthode

public Teleport ( int number, float number2, float number3, float number4, int number5 ) : void
number int
number2 float
number3 float
number4 float
number5 int
Résultat void

TileBreak() public méthode

public TileBreak ( int tileAction, int x, int y, int tileType, int style ) : void
tileAction int
x int
y int
tileType int
style int
Résultat void

TileRowCompressed() public méthode

public TileRowCompressed ( int numColumns, int firstColumn, int row ) : void
numColumns int
firstColumn int
row int
Résultat void

TileRowSize() public méthode

public TileRowSize ( int numColumns, int firstColumn, int row ) : int
numColumns int
firstColumn int
row int
Résultat int

TileSquare() public méthode

public TileSquare ( int size, int X, int Y ) : void
size int
X int
Y int
Résultat void

TimeSunMoonUpdate() public méthode

public TimeSunMoonUpdate ( ) : void
Résultat void

TravelShop() public méthode

public TravelShop ( ) : void
Résultat void

UShort() public méthode

public UShort ( ushort data ) : void
data ushort
Résultat void

UpdatePlayers() public méthode

public UpdatePlayers ( ) : void
Résultat void

WorldBalance() public méthode

public WorldBalance ( byte good, byte evil, byte blood ) : void
good byte
evil byte
blood byte
Résultat void

WorldData() public méthode

public WorldData ( ) : void
Résultat void

WorldData() public méthode

public WorldData ( bool hardMode ) : void
hardMode bool
Résultat void

WorldData() public méthode

public WorldData ( int spawnX, int spawnY ) : void
spawnX int
spawnY int
Résultat void

WorldData() public méthode

public WorldData ( int spawnX, int spawnY, bool hardMode ) : void
spawnX int
spawnY int
hardMode bool
Résultat void

WorldRequest() public méthode

public WorldRequest ( ) : void
Résultat void

WriteSign() public méthode

public WriteSign ( int signId ) : void
signId int
Résultat void

WriteSign() public méthode

public WriteSign ( int signId, int x, int y, string text ) : void
signId int
x int
y int
text string
Résultat void