|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinevirtualinherited |
Use this judiciously to avoid straining the network.
Checks and methods such as M:Terraria.ModLoader.GlobalType`2.AppliesToEntity(`0,System.Boolean) can reduce how much data must be sent for how many projectiles.
Called whenever F:Terraria.ID.MessageID.SyncNPC is successfully sent, for example on NPC creation, on player join, or whenever NPC.netUpdate is set to true in the update loop for that tick.
Can be called on the server.
| npc | The NPC. |
| bitWriter | The compressible bit writer. Booleans written via this are compressed across all mods to improve multiplayer performance. |
| binaryWriter | The writer. |
Definition at line 148 of file GlobalNPC.cs.