Exemplo n.º 1
0
        private static void GenerateDefaultSnapshot()
        {
            var snapshotEntities = new Dictionary <EntityId, Entity>();
            var currentEntityId  = 1;

            snapshotEntities.Add(new EntityId(currentEntityId++), EntityTemplateFactory.CreatePlayerCreatorTemplate());
            snapshotEntities.Add(new EntityId(currentEntityId++), EntityTemplateFactory.CreateBananaCreatorTemplate());
            snapshotEntities.Add(new EntityId(currentEntityId++), EntityTemplateFactory.CreateCubeTemplate());
            snapshotEntities.Add(new EntityId(currentEntityId++), EntityTemplateFactory.CreateLaboratoryTemplate());
//			snapshotEntities.Add(new EntityId(currentEntityId++), EntityTemplateFactory.CreateBananaTemplate());
//			PopulateSnapshotWithBananaEntities(ref snapshotEntities, ref currentEntityId);

            SaveSnapshot(snapshotEntities);
        }