|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinevirtual |
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.SyncProjectile is successfully sent, for example on projectile creation, or whenever Projectile.netUpdate is set to true in the update loop for that tick.
Can be called on both server and client, depending on who owns the projectile.
| projectile | The projectile. |
| bitWriter | The compressible bit writer. Booleans written via this are compressed across all mods to improve multiplayer performance. |
| binaryWriter | The writer. |
Definition at line 74 of file GlobalProjectile.cs.