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

◆ Deserialize()

override bool Terraria.GameContent.NetModules.NetCreativePowersModule.Deserialize ( BinaryReader reader,
int userId )
inline

Definition at line 16 of file NetCreativePowersModule.cs.

17 {
18 ushort id = reader.ReadUInt16();
19 if (!CreativePowerManager.Instance.TryGetPower(id, out var power))
20 {
21 return false;
22 }
23 power.DeserializeNetMessage(reader, userId);
24 return true;
25 }
virtual ushort ReadUInt16()

References Terraria.GameContent.Creative.CreativePowerManager.Instance, and System.IO.BinaryReader.ReadUInt16().