Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit 6262ede

Browse files
committed
upgraded to SpatialOS 12.0.4
1 parent b28708b commit 6262ede

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

snapshots/default.snapshot

-5 Bytes
Binary file not shown.

workers/unity/Assets/Editor/SnapshotMenu.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,19 @@ private static void SaveSnapshot(IDictionary<EntityId, Entity> snapshotEntities)
6464
{
6565
var snapshotPath = Application.dataPath + SimulationSettings.DefaultRelativeSnapshotPath;
6666
File.Delete(snapshotPath);
67-
var maybeError = Snapshot.Save(snapshotPath, snapshotEntities);
68-
69-
if (maybeError.HasValue)
70-
{
71-
Debug.LogErrorFormat("Failed to generate initial world snapshot: {0}", maybeError.Value);
72-
}
73-
else
67+
using (SnapshotOutputStream stream = new SnapshotOutputStream(snapshotPath))
7468
{
75-
Debug.LogFormat("Successfully generated initial world snapshot at {0}", snapshotPath);
69+
foreach (var kvp in snapshotEntities)
70+
{
71+
var error = stream.WriteEntity(kvp.Key, kvp.Value);
72+
if (error.HasValue)
73+
{
74+
Debug.LogErrorFormat("Failed to generate initial world snapshot: {0}", error.Value);
75+
return;
76+
}
77+
}
7678
}
79+
Debug.LogFormat("Successfully generated initial world snapshot at {0}", snapshotPath);
7780
}
7881
}
7982
}

workers/unity/Assets/EntityPrefabs/PlayerShip.prefab

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ MeshRenderer:
167167
m_AutoUVMaxAngle: 89
168168
m_LightmapParameters: {fileID: 0}
169169
m_SortingLayerID: 0
170+
m_SortingLayer: 0
170171
m_SortingOrder: 0
171172
--- !u!23 &2397078
172173
MeshRenderer:
@@ -198,6 +199,7 @@ MeshRenderer:
198199
m_AutoUVMaxAngle: 89
199200
m_LightmapParameters: {fileID: 0}
200201
m_SortingLayerID: 0
202+
m_SortingLayer: 0
201203
m_SortingOrder: 0
202204
--- !u!33 &3331058
203205
MeshFilter:
@@ -235,7 +237,7 @@ Light:
235237
m_PrefabInternal: {fileID: 100100000}
236238
m_GameObject: {fileID: 155304}
237239
m_Enabled: 1
238-
serializedVersion: 7
240+
serializedVersion: 8
239241
m_Type: 0
240242
m_Color: {r: 1, g: 1, b: 1, a: 1}
241243
m_Intensity: 3.13
@@ -260,6 +262,8 @@ Light:
260262
m_Lightmapping: 4
261263
m_AreaSize: {x: 1, y: 1}
262264
m_BounceIntensity: 1.77
265+
m_ColorTemperature: 6570
266+
m_UseColorTemperature: 0
263267
m_ShadowRadius: 0
264268
m_ShadowAngle: 0
265269
--- !u!114 &11410120

workers/unity/Assets/EntityPrefabs/PlayerShip.prefab.meta

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 5.5.1f1
1+
m_EditorVersion: 5.6.0f3

0 commit comments

Comments
 (0)