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

Mostra file Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod Class Usage Examples

Private Properties

Property Type Description
CompressedTileBody void
CompressedTileFlags byte
Tile void
Tile void
TileSize int

Public Methods

Method 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

Method 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 method

public AngerQuestsFinished ( int number ) : void
number int
return void

AnglerQuest() public method

public AnglerQuest ( string text ) : void
text string
return void

Begin() public method

public Begin ( ) : void
return void

Begin() public method

public Begin ( Packet id ) : void
id Packet
return void

Begin() public method

public Begin ( int id ) : void
id int
return void

Bool() public method

public Bool ( bool data ) : void
data bool
return void

BootPlayer() public static method

public static BootPlayer ( int plr, string msg ) : void
plr int
msg string
return void

Broadcast() public method

public Broadcast ( ) : void
return void

Broadcast() public static method

public static Broadcast ( byte bytes ) : void
bytes byte
return void

BroadcastExcept() public static method

public static BroadcastExcept ( byte bytes, int i ) : void
bytes byte
i int
return void

BroadcastExcept() public method

public BroadcastExcept ( int i ) : void
i int
return void

BuildPlayerUpdate() public method

public BuildPlayerUpdate ( int i ) : void
i int
return void

Byte() public method

public Byte ( bool data ) : void
data bool
return void

Byte() public method

public Byte ( byte data ) : void
data byte
return void

Byte() public method

public Byte ( byte data, int length ) : void
data byte
length int
return void

Byte() public method

public Byte ( int data ) : void
data int
return void

CatchNPC() public method

public CatchNPC ( int number, float number2 ) : void
number int
number2 float
return void

ChestItem() public method

public ChestItem ( int chestId, int itemId ) : void
chestId int
itemId int
return void

ChestUnlock() public method

public ChestUnlock ( int playerId, int param, int x, int y ) : void
playerId int
param int
x int
y int
return void

Clear() public method

public Clear ( ) : void
return void

Color() public method

public Color ( Color data ) : void
data Color
return void

ConnectionRequest() public method

public ConnectionRequest ( string version ) : void
version string
return void

ConnectionResponse() public method

public ConnectionResponse ( int clientId ) : void
clientId int
return void

DamageNPC() public method

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

Disconnect() public method

public Disconnect ( string reason ) : void
reason string
return void

DoorUpdate() public method

public DoorUpdate ( int doorAction, int x, int y, int doorDirection ) : void
doorAction int
x int
y int
doorDirection int
return void

End() public method

public End ( ) : void
return void

EnterZone() public method

public EnterZone ( int playerId ) : void
playerId int
return void

Float() public method

public Float ( float data ) : void
data float
return void

FloatUnsafe() public method

public FloatUnsafe ( float data ) : void
data float
return void

FlowLiquid() public method

public FlowLiquid ( int x, int y ) : void
x int
y int
return void

HealPlayer() public method

public HealPlayer ( int playerId, int amount ) : void
playerId int
amount int
return void

HitSwitch() public method

public HitSwitch ( short x, short y ) : void
x short
y short
return void

Int() public method

public Int ( double data ) : void
data double
return void

Int() public method

public Int ( int data ) : void
data int
return void

InventoryData() public method

public InventoryData ( int playerId, int invId, int prefix ) : void
playerId int
invId int
prefix int
return void

ItemInfo() public method

public ItemInfo ( int itemId, byte number2 ) : void
itemId int
number2 byte
return void

ItemOwnerInfo() public method

public ItemOwnerInfo ( int itemId ) : void
itemId int
return void

ItemOwnerUpdate() public method

public ItemOwnerUpdate ( int itemId ) : void
itemId int
return void

KillPlayerPVP() public method

public KillPlayerPVP ( int victimId, string deathText, int direction, int damage, int pvpFlag ) : void
victimId int
deathText string
direction int
damage int
pvpFlag int
return void

KillProjectile() public method

public KillProjectile ( int identity, int owner ) : void
identity int
owner int
return void

KillTile() public method

public KillTile ( int number, float number2, float number3, float number4, int number5 ) : void
number int
number2 float
number3 float
number4 float
number5 int
return void

NPCAddBuff() public method

public NPCAddBuff ( int npcId, int type, int time ) : void
npcId int
type int
time int
return void

NPCBuffs() public method

public NPCBuffs ( int npcId ) : void
npcId int
return void

NPCHome() public method

public NPCHome ( int npcId, int homeTileX, int homeTileY, bool homeless ) : void
npcId int
homeTileX int
homeTileY int
homeless bool
return void

NPCInfo() public method

public NPCInfo ( int npcId ) : void
npcId int
return void

NPCName() public method

public NPCName ( int id, string text ) : void
id int
text string
return void

NPCTalk() public method

public NPCTalk ( int playerId ) : void
playerId int
return void

NewNetMessage() public method

public NewNetMessage ( int bufSize = 65535 ) : System
bufSize int
return System

OnPlayerJoined() public static method

public static OnPlayerJoined ( int plr ) : void
plr int
return void

OnPlayerLeft() public static method

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

OpenChest() public method

public OpenChest ( ) : void
return void

Packet63() public method

public Packet63 ( ) : void
return void

Packet68() public method

public Packet68 ( ) : void
return void

Packet69() public method

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
return void

PaintWall() public method

public PaintWall ( int number, float number2, float number3 ) : void
number int
number2 float
number3 float
return void

PasswordRequest() public method

public PasswordRequest ( ) : void
return void

PasswordResponse() public method

public PasswordResponse ( ) : void
return void

PlayHarp() public method

public PlayHarp ( int playerId, float note ) : void
playerId int
note float
return void

PlayerAddBuff() public method

public PlayerAddBuff ( int playerId, int type, int time ) : void
playerId int
type int
time int
return void

PlayerBallswing() public method

public PlayerBallswing ( int playerId ) : void
playerId int
return void

PlayerBuffs() public method

public PlayerBuffs ( int playerId ) : void
playerId int
return void

PlayerChat() public method

public PlayerChat ( int playerId, string text, int r, int g, int b ) : void
playerId int
text string
r int
g int
b int
return void

PlayerChestUpdate() public method

public PlayerChestUpdate ( int chestId, string text ) : void
chestId int
text string
return void

PlayerData() public method

public PlayerData ( int playerId ) : void
playerId int
return void

PlayerDodge() public method

public PlayerDodge ( int number, float number2 ) : void
number int
number2 float
return void

PlayerHealthUpdate() public method

public PlayerHealthUpdate ( int playerId ) : void
playerId int
return void

PlayerJoinParty() public method

public PlayerJoinParty ( int playerId ) : void
playerId int
return void

PlayerManaUpdate() public method

public PlayerManaUpdate ( int playerId ) : void
playerId int
return void

PlayerPVPChange() public method

public PlayerPVPChange ( int playerId ) : void
playerId int
return void

PlayerStateUpdate() public method

public PlayerStateUpdate ( int playerId ) : void
playerId int
return void

PlayerStateUpdate() public method

public PlayerStateUpdate ( int playerId, float px, float py ) : void
playerId int
px float
py float
return void

PlayerUseManaUpdate() public method

public PlayerUseManaUpdate ( int playerId, int amount ) : void
playerId int
amount int
return void

PrepareThreadInstance() public static method

public static PrepareThreadInstance ( ) : NewNetMessage
return NewNetMessage

PrepareThreadInstance() public static method

public static PrepareThreadInstance ( int size ) : NewNetMessage
size int
return NewNetMessage

Projectile() public method

public Projectile ( Projectile proj ) : void
proj Terraria.Projectile
return void

ReadSign() public method

public ReadSign ( int x, int y ) : void
x int
y int
return void

ReceivingPlayerJoined() public method

public ReceivingPlayerJoined ( int playerId ) : void
playerId int
return void

ReceivingPlayerJoined() public method

public ReceivingPlayerJoined ( int playerId, int sx, int sy ) : void
playerId int
sx int
sy int
return void

ReleaseNPC() public method

public ReleaseNPC ( int number, float number2, float number3, float number4 ) : void
number int
number2 float
number3 float
number4 float
return void

RequestTileBlock() public method

public RequestTileBlock ( ) : void
return void

SByte() public method

public SByte ( sbyte data ) : void
data sbyte
return void

Send() public method

public Send ( tdsm.api.ClientConnection conn ) : void
conn tdsm.api.ClientConnection
return void

Send() public method

public Send ( int i ) : void
i int
return void

SendData() public static method

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
return int

SendData() public static method

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
return int

SendSection() public static method

public static SendSection ( int whoAmi, int sectionX, int sectionY ) : void
whoAmi int
sectionX int
sectionY int
return void

SendSection() public static method

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

SendSpawn() public method

public SendSpawn ( ) : void
return void

SendSyncOthersForPlayer() public method

public SendSyncOthersForPlayer ( int i ) : void
i int
return void

SendSyncPlayerForOthers() public method

public SendSyncPlayerForOthers ( int i ) : void
i int
return void

SendTileConfirm() public method

public SendTileConfirm ( int sectionX, int sectionY, int sectionXAgain, int sectionYAgain ) : void
sectionX int
sectionY int
sectionXAgain int
sectionYAgain int
return void

SendTileLoading() public method

public SendTileLoading ( int number, string text ) : void
number int
text string
return void

SendTileRowCompressed() public method

public SendTileRowCompressed ( int xStart, int yStart, short width, short height, bool packChests ) : void
xStart int
yStart int
width short
height short
packChests bool
return void

SendTileSquare() public static method

public static SendTileSquare ( int whoAmi, int tileX, int tileY, int size ) : void
whoAmi int
tileX int
tileY int
size int
return void

SendTileSquare() public static method

public static SendTileSquare ( int whoAmi, int x, int y, int size, bool centered ) : void
whoAmi int
x int
y int
size int
centered bool
return void

SendWater() public static method

public static SendWater ( int x, int y ) : void
x int
y int
return void

Short() public method

public Short ( int data ) : void
data int
return void

Short() public method

public Short ( short data ) : void
data short
return void

SingleTileSquare() public method

public SingleTileSquare ( int X, int Y, Tile tile ) : void
X int
Y int
tile Terraria.Tile
return void

StrikeNPC() public method

public StrikeNPC ( int npcId, int playerId ) : void
npcId int
playerId int
return void

StrikePlayer() public method

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
return void

String() public method

public String ( string data, bool newLineOverride = false, bool useUTF = false ) : void
data string
newLineOverride bool
useUTF bool
return void

SummonSkeletron() public method

public SummonSkeletron ( int action, int param ) : void
action int
param int
return void

SyncAllNPCHomes() public method

public SyncAllNPCHomes ( ) : void
return void

SyncNPCHome() public method

public SyncNPCHome ( int npcIndex ) : void
npcIndex int
return void

SyncNPCHomes() public static method

public static SyncNPCHomes ( ) : void
return void

SyncPlayers() public static method

public static SyncPlayers ( ) : void
return void

SynchBegin() public method

public SynchBegin ( int playerId, int active ) : void
playerId int
active int
return void

Teleport() public method

public Teleport ( int number, float number2, float number3, float number4, int number5 ) : void
number int
number2 float
number3 float
number4 float
number5 int
return void

TileBreak() public method

public TileBreak ( int tileAction, int x, int y, int tileType, int style ) : void
tileAction int
x int
y int
tileType int
style int
return void

TileRowCompressed() public method

public TileRowCompressed ( int numColumns, int firstColumn, int row ) : void
numColumns int
firstColumn int
row int
return void

TileRowSize() public method

public TileRowSize ( int numColumns, int firstColumn, int row ) : int
numColumns int
firstColumn int
row int
return int

TileSquare() public method

public TileSquare ( int size, int X, int Y ) : void
size int
X int
Y int
return void

TimeSunMoonUpdate() public method

public TimeSunMoonUpdate ( ) : void
return void

TravelShop() public method

public TravelShop ( ) : void
return void

UShort() public method

public UShort ( ushort data ) : void
data ushort
return void

UpdatePlayers() public method

public UpdatePlayers ( ) : void
return void

WorldBalance() public method

public WorldBalance ( byte good, byte evil, byte blood ) : void
good byte
evil byte
blood byte
return void

WorldData() public method

public WorldData ( ) : void
return void

WorldData() public method

public WorldData ( bool hardMode ) : void
hardMode bool
return void

WorldData() public method

public WorldData ( int spawnX, int spawnY ) : void
spawnX int
spawnY int
return void

WorldData() public method

public WorldData ( int spawnX, int spawnY, bool hardMode ) : void
spawnX int
spawnY int
hardMode bool
return void

WorldRequest() public method

public WorldRequest ( ) : void
return void

WriteSign() public method

public WriteSign ( int signId ) : void
signId int
return void

WriteSign() public method

public WriteSign ( int signId, int x, int y, string text ) : void
signId int
x int
y int
text string
return void