private static void GenerateDefaultSnapshot() { var snapshot = new Snapshot(); var spawner = FpsEntityTemplates.Spawner(); snapshot.AddEntity(spawner); var SimulatedPlayerCoordinatorTrigger = FpsEntityTemplates.SimulatedPlayerCoordinatorTrigger(); snapshot.AddEntity(SimulatedPlayerCoordinatorTrigger); SaveSnapshot(snapshot); }
private static void GenerateFpsSnapshot() { var localSnapshot = new Snapshot(); var cloudSnapshot = new Snapshot(); GenerateSnapshot(localSnapshot); GenerateSnapshot(cloudSnapshot); // The local snapshot is identical to the cloud snapshot, but also includes a simulated player coordinator // trigger. var simulatedPlayerCoordinatorTrigger = FpsEntityTemplates.SimulatedPlayerCoordinatorTrigger(); localSnapshot.AddEntity(simulatedPlayerCoordinatorTrigger); SaveSnapshot(DefaultSnapshotPath, localSnapshot); SaveSnapshot(CloudSnapshotPath, cloudSnapshot); }
private static void GenerateFpsSnapshot() { var localSnapshot = new Snapshot(); var cloudSnapshot = new Snapshot(); GenerateSnapshot(localSnapshot); GenerateSnapshot(cloudSnapshot); // The local snapshot is identical to the cloud snapshot, but also includes a simulated player coordinator // trigger. var simulatedPlayerCoordinatorTrigger = FpsEntityTemplates.SimulatedPlayerCoordinatorTrigger(); var polController = FpsEntityTemplates.PolControllerEntity(new Improbable.Vector3f(5, 0, 0)); cloudSnapshot.AddEntity(polController); cloudSnapshot.AddEntity(simulatedPlayerCoordinatorTrigger); AddPolEntities(cloudSnapshot, 100); localSnapshot.AddEntity(polController); AddPolEntities(localSnapshot, 100); localSnapshot.AddEntity(simulatedPlayerCoordinatorTrigger); SaveSnapshot(DefaultSnapshotPath, localSnapshot); SaveSnapshot(CloudSnapshotPath, cloudSnapshot); }