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

◆ DeserializeNetMessage()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.DeserializeNetMessage ( BinaryReader reader,
int userId )
inlineinherited

Implements Terraria.GameContent.Creative.ICreativePower.

Definition at line 236 of file CreativePowers.cs.

237 {
238 int num = reader.ReadByte();
239 float num2 = reader.ReadSingle();
240 if (Main.netMode == 2)
241 {
242 num = userId;
243 if (!CreativePowersHelper.IsAvailableForPlayer(this, num))
244 {
245 return;
246 }
247 }
248 _cachePerPlayer[num] = num2;
249 if (num == Main.myPlayer)
250 {
253 }
254 }
virtual byte ReadByte()
virtual float ReadSingle()

References Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower._cachePerPlayer, Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower._sliderCurrentValueCache, Terraria.GameContent.Creative.CreativePowersHelper.IsAvailableForPlayer(), Terraria.Main.myPlayer, Terraria.Main.netMode, System.IO.BinaryReader.ReadByte(), System.IO.BinaryReader.ReadSingle(), and Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.UpdateInfoFromSliderValueCache().