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

Finish porting core codegen module #1253

Merged
merged 5 commits into from
Jan 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

### Added

- Added public toolkit for writing code generators. [#1240](https://github.com/spatialos/gdk-for-unity/pull/1240)
- Added public toolkit for writing code generators. [#1240](https://github.com/spatialos/gdk-for-unity/pull/1240) [#1243](https://github.com/spatialos/gdk-for-unity/pull/1243) [#1244](https://github.com/spatialos/gdk-for-unity/pull/1244) [#1245](https://github.com/spatialos/gdk-for-unity/pull/1245) [#1250](https://github.com/spatialos/gdk-for-unity/pull/1250)

### Internal

@@ -14,6 +14,7 @@
- Ported test-project to new CodeWriter. [#1241](https://github.com/spatialos/gdk-for-unity/pull/1241)
- Ported build system module to new CodeWriter. [#1242](https://github.com/spatialos/gdk-for-unity/pull/1242)
- Ported gameobject creation module to new CodeWriter. [#1247](https://github.com/spatialos/gdk-for-unity/pull/1247)
- Ported core module to new CodeWriter. [#1247](https://github.com/spatialos/gdk-for-unity/pull/1247) [#1248](https://github.com/spatialos/gdk-for-unity/pull/1248) [#1249](https://github.com/spatialos/gdk-for-unity/pull/1249) [#1251](https://github.com/spatialos/gdk-for-unity/pull/1251) [#1252](https://github.com/spatialos/gdk-for-unity/pull/1252) [#1253](https://github.com/spatialos/gdk-for-unity/pull/1253)

## `0.3.2` - 2019-12-23

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -507,7 +507,6 @@ public event Action<DependentComponent.Update> OnUpdate
}
}


internal DependentComponentReader(World world, Entity entity, EntityId entityId)
{
Entity = entity;
@@ -542,7 +541,6 @@ public void RemoveAllCallbacks()
updateCallbackToCallbackKey.Clear();
}


if (aUpdateCallbackToCallbackKey != null)
{
foreach (var callbackToKey in aUpdateCallbackToCallbackKey)
@@ -634,7 +632,6 @@ public void SendUpdate(DependentComponent.Update update)
EntityManager.SetComponentData(Entity, component);
}


public void AcknowledgeAuthorityLoss()
{
ComponentUpdateSystem.AcknowledgeAuthorityLoss(EntityId, DependentComponent.ComponentId);
Original file line number Diff line number Diff line change
@@ -40,14 +40,12 @@ public void SendUpdates(

var spatialOSEntityType = system.GetArchetypeChunkComponentType<SpatialEntityId>(true);
var componentType = system.GetArchetypeChunkComponentType<global::Improbable.DependentSchema.DependentComponent.Component>();

var authorityType = system.GetArchetypeChunkSharedComponentType<ComponentAuthority>();

foreach (var chunk in chunkArray)
{
var entityIdArray = chunk.GetNativeArray(spatialOSEntityType);
var componentArray = chunk.GetNativeArray(componentType);

var authorityIndex = chunk.GetSharedComponentIndex(authorityType);

if (!entityManager.GetSharedComponentData<ComponentAuthority>(authorityIndex).HasAuthority)
@@ -58,6 +56,7 @@ public void SendUpdates(
for (var i = 0; i < componentArray.Length; i++)
{
var data = componentArray[i];

if (data.IsDataDirty())
{
Update update = new Update();
Loading