From b87a5f2fef722db14d690a64cf33b0934e4f01ed Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Mon, 11 Mar 2019 23:10:23 -0600 Subject: [PATCH] Renamed UpdateState to UpdateFromState. --- INetworkEntity.cs | 2 +- NetworkManager.cs | 4 ++-- Properties/AssemblyInfo.cs | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/INetworkEntity.cs b/INetworkEntity.cs index ffe16f5..af48f3e 100644 --- a/INetworkEntity.cs +++ b/INetworkEntity.cs @@ -44,6 +44,6 @@ public interface INetworkEntity /// A generic object describing an entity state /// The time this state was received, compare to current network time to understand elapsed time /// Whether or not this is a dead reckoning update - void UpdateState(object entityState, double stateTime); + void UpdateFromState(object entityState, double stateTime); } } diff --git a/NetworkManager.cs b/NetworkManager.cs index c03726c..61a46f9 100644 --- a/NetworkManager.cs +++ b/NetworkManager.cs @@ -449,7 +449,7 @@ private void CreateEntity(long ownerId, long entityId, object payload, double ti throw new RedGrinException(msg); } - targetEntity.UpdateState(payload, time); + targetEntity.UpdateFromState(payload, time); targetEntity.OwnerId = ownerId; targetEntity.EntityId = entityId; mEntities.Add(targetEntity); @@ -493,7 +493,7 @@ private void UpdateEntity(long entityId, long ownerId, object payload, bool isRe { if(targetEntity.OwnerId != this.NetworkId || isReckoning) { - targetEntity.UpdateState(payload, time); + targetEntity.UpdateFromState(payload, time); } BroadcastIfServer(entityId, targetEntity.OwnerId, payload, diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index df74d4d..99fa3e7 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,9 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +// 1.1.0.0 +// - NetworkManager is now a singleton +// - Reduced necessary arguments for INetworkEntity and INetworkArena implementation. +// - +[assembly: AssemblyVersion("1.1.0.0")] +[assembly: AssemblyFileVersion("1.1.0.0")]