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

◆ AttemptPushingChange()

void Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.AttemptPushingChange ( )
inlineprivateinherited

Definition at line 664 of file CreativePowers.cs.

665 {
667 {
668 _needsToCommitChange = false;
672 packet.Writer.Write(_currentTargetValue);
673 NetManager.Instance.SendToServerOrLoopback(packet);
674 }
675 }
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.ASharedSliderPower._currentTargetValue, Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower._needsToCommitChange, Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower._nextTimeWeCanPush, Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower._sliderCurrentValueCache, Terraria.Net.NetManager.Instance, Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.PowerId, Terraria.GameContent.NetModules.NetCreativePowersModule.PreparePacket(), and System.DateTime.UtcNow.

Referenced by Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.categoryButton_OnUpdate().