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

◆ PushChange()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.PushChange ( float newSliderValue)
inlinepackageinherited

Definition at line 343 of file CreativePowers.cs.

344 {
345 _needsToCommitChange = false;
349 packet.Writer.Write((byte)Main.myPlayer);
350 packet.Writer.Write(newSliderValue);
351 NetManager.Instance.SendToServerOrLoopback(packet);
352 }
static NetPacket PreparePacket(ushort powerId, int specificInfoBytesInPacketCount)
static readonly NetManager Instance
Definition NetManager.cs:18
static unsafe DateTime UtcNow
Definition DateTime.cs:142

References Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower._needsToCommitChange, Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower._nextTimeWeCanPush, Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower._sliderCurrentValueCache, Terraria.Net.NetManager.Instance, Terraria.Main.myPlayer, Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.PowerId, Terraria.GameContent.NetModules.NetCreativePowersModule.PreparePacket(), and System.DateTime.UtcNow.

Referenced by Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.AttemptPushingChange(), and Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.PushChangeAndSetSlider().