Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PreparePacket()

static NetPacket Terraria.GameContent.NetModules.NetCreativePowersModule.PreparePacket ( ushort powerId,
int specificInfoBytesInPacketCount )
inlinestatic

Definition at line 9 of file NetCreativePowersModule.cs.

10 {
11 NetPacket result = NetModule.CreatePacket<NetCreativePowersModule>(specificInfoBytesInPacketCount + 2);
12 result.Writer.Write(powerId);
13 return result;
14 }
virtual void Write(bool value)
BinaryWriter Writer
Definition NetPacket.cs:16

References System.IO.BinaryWriter.Write(), and Terraria.Net.NetPacket.Writer.

Referenced by Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.AttemptPushingChange(), Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.DebugCall(), Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.DebugCall(), Terraria.GameContent.Creative.CreativePowers.ASharedTogglePower.DeserializeNetMessage(), Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.DeserializeNetMessage(), Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.OnPlayerJoining(), Terraria.GameContent.Creative.CreativePowers.ASharedTogglePower.OnPlayerJoining(), Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.OnPlayerJoining(), Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.PushChange(), Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.RequestUse(), Terraria.GameContent.Creative.CreativePowers.ASharedButtonPower.RequestUse(), Terraria.GameContent.Creative.CreativePowers.ASharedTogglePower.RequestUse(), and Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.SetEnabledState().