Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 65cfdcb

Browse files
zeroZshadowPaul Balaji
authored andcommitted
Feature/cleanup codegen (#1159)
1 parent bdb2400 commit 65cfdcb

35 files changed

+4947
-8854
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Added network statistics collection for both sending and receiving messages. [#1135](https://github.com/spatialos/gdk-for-unity/pull/1135)
88
- This adds a single ECS system `NetworkStatisticsSystem`. This system will only run when running your workers inside the Unity Editor.
99
- Additionally, there are a set of data types supporting this system which can be found under the `Improbable.Gdk.Core.NetworkStats` namespace.
10+
- Added the Network Analyzer window, which allows you to view live bandwidth usage per component. `SpatialOS->Window->Network Analyzer` [#1148](https://github.com/spatialos/gdk-for-unity/pull/1148)
1011

1112
### Fixed
1213

test-project/Assets/Generated/Source/improbable/dependentschema/DependentComponent.cs

Lines changed: 140 additions & 308 deletions
Large diffs are not rendered by default.

test-project/Assets/Generated/Source/improbable/dependentschema/DependentComponentComponentReaderWriter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,14 @@ public event Action<DependentComponent.Update> OnUpdate
476476
}
477477
}
478478

479-
private Dictionary<Action<global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType>>, ulong> eUpdateCallbackToCallbackKey;
480-
public event Action<global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType>> OnEUpdate
479+
private Dictionary<Action<global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>>, ulong> eUpdateCallbackToCallbackKey;
480+
public event Action<global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>> OnEUpdate
481481
{
482482
add
483483
{
484484
if (eUpdateCallbackToCallbackKey == null)
485485
{
486-
eUpdateCallbackToCallbackKey = new Dictionary<Action<global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType>>, ulong>();
486+
eUpdateCallbackToCallbackKey = new Dictionary<Action<global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>>, ulong>();
487487
}
488488

489489
var key = CallbackSystem.RegisterComponentUpdateCallback<DependentComponent.Update>(EntityId, update =>

test-project/Assets/Generated/Source/improbable/dependentschema/DependentComponentProviders.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private static uint GetNextHandle()
216216

217217
public static class EProvider
218218
{
219-
private static readonly Dictionary<uint, global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType>> Storage = new Dictionary<uint, global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType>>();
219+
private static readonly Dictionary<uint, global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>> Storage = new Dictionary<uint, global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>>();
220220
private static readonly Dictionary<uint, global::Unity.Entities.World> WorldMapping = new Dictionary<uint, global::Unity.Entities.World>();
221221

222222
private static uint nextHandle = 0;
@@ -225,13 +225,13 @@ public static uint Allocate(global::Unity.Entities.World world)
225225
{
226226
var handle = GetNextHandle();
227227

228-
Storage.Add(handle, default(global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType>));
228+
Storage.Add(handle, default(global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType>));
229229
WorldMapping.Add(handle, world);
230230

231231
return handle;
232232
}
233233

234-
public static global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType> Get(uint handle)
234+
public static global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType> Get(uint handle)
235235
{
236236
if (!Storage.TryGetValue(handle, out var value))
237237
{
@@ -241,7 +241,7 @@ public static uint Allocate(global::Unity.Entities.World world)
241241
return value;
242242
}
243243

244-
public static void Set(uint handle, global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum,global::Improbable.TestSchema.SomeType> value)
244+
public static void Set(uint handle, global::System.Collections.Generic.Dictionary<global::Improbable.TestSchema.SomeEnum, global::Improbable.TestSchema.SomeType> value)
245245
{
246246
if (!Storage.ContainsKey(handle))
247247
{

0 commit comments

Comments
 (0)