Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit 669e957

Browse files
author
Paul Balaji
authored
Pass EntityId into Player EntityTemplate method (#90)
1 parent 13c5f96 commit 669e957

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Breaking Changes
66

77
- The blank project now uses [query-based interest](https://docs.improbable.io/reference/14.4/shared/authority-and-interest/interest/query-based-interest-qbi) instead of [chunk-based interest](https://docs.improbable.io/reference/14.4/shared/authority-and-interest/interest/chunk-based-interest-cbi). [#89](https://github.com/spatialos/gdk-for-unity-blank-project/pull/89)
8+
- You must now pass in an `EntityId` to create a player `EntityTemplate`. [#90](https://github.com/spatialos/gdk-for-unity-blank-project/pull/90)
89

910
## `0.3.3` - 2020-02-14
1011

gdk.pinned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
develop d3c1cf8fda5ee8fe50196cfcfb19aa33dd5a3894
1+
develop 34603f47b065d21f73e14beb9f44dce843dbc2ca

workers/unity/Assets/BlankProject/Scripts/Config/EntityTemplates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BlankProject.Scripts.Config
77
{
88
public static class EntityTemplates
99
{
10-
public static EntityTemplate CreatePlayerEntityTemplate(string workerId, byte[] serializedArguments)
10+
public static EntityTemplate CreatePlayerEntityTemplate(EntityId entityId, string workerId, byte[] serializedArguments)
1111
{
1212
var clientAttribute = EntityTemplate.GetWorkerAccessAttribute(workerId);
1313
var serverAttribute = UnityGameLogicConnector.WorkerType;

0 commit comments

Comments
 (0)