Exemplo n.º 1
0
 public void SaveState(ISerializerStorage storage, ISerializerStream stream)
 {
     stream.DeepSerialize = true;
     stream.TypeResolver  = this;
     // Serialize The View Models
     stream.SerializeArray("ViewModels", PersistantViewModels);
     // Clear the references so view-models and view of the same identifier don't match up
     stream.ReferenceObjects.Clear();
     // Serialize the views
     stream.SerializeArray("Views", PersistantViews);
     // Serialize the stream
     storage.Save(stream);
 }
Exemplo n.º 2
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("Cubes", this.Cubes);
     }
 }
Exemplo n.º 3
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("PlayerItems", this.PlayerItems);
     }
 }
Exemplo n.º 4
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("PanelCollection", this.PanelCollection);
     }
 }
Exemplo n.º 5
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     stream.SerializeFloat("FireRate", this.FireRate);
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("Projectiles", this.Projectiles);
     }
 }
Exemplo n.º 6
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     stream.SerializeInt("CurrentWeaponIndex", this.CurrentWeaponIndex);
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("Weapons", this.Weapons);
     }
 }
Exemplo n.º 7
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize)
     {
         stream.SerializeObject("Player", this.Player);
     }
     stream.SerializeVector3("SpawnPoint", this.SpawnPoint);
     stream.SerializeBool("GameOver", this.GameOver);
     stream.SerializeString("NotificationText", this.NotificationText);
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("Asteroids", this.Asteroids);
     }
 }
Exemplo n.º 8
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize)
     {
         stream.SerializeObject("CurrentPlayer", this.CurrentPlayer);
     }
     stream.SerializeInt("Score", this.Score);
     stream.SerializeInt("Kills", this.Kills);
     stream.SerializeString("String1", this.String1);
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("Enemies", this.Enemies);
     }
 }
Exemplo n.º 9
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     stream.SerializeString("TodoContent", this.TodoContent);
     stream.SerializeInt("PageType", (int)this.PageType);;
     if (stream.DeepSerialize)
     {
         stream.SerializeObject("TodoEditor", this.TodoEditor);
     }
     ;
     if (stream.DeepSerialize)
     {
         stream.SerializeObject("EventMask", this.EventMask);
     }
     ;
     if (stream.DeepSerialize)
     {
         stream.SerializeArray("TodoItems", this.TodoItems);
     }
 }
Exemplo n.º 10
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize) stream.SerializeArray("Screens", this.Screens);
 }
Exemplo n.º 11
0
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     stream.SerializeString("InGameState", this.InGameState.Name);;
     stream.SerializeInt("IdleAnimalsCount", this.IdleAnimalsCount);
     stream.SerializeInt("NullAnimalsCount", this.NullAnimalsCount);
     stream.SerializeBool("IsDropping", this.IsDropping);
     if (stream.DeepSerialize) stream.SerializeArray("AnimalCollections", this.AnimalCollections);
 }
 public override void Write(ISerializerStream stream) {
     base.Write(stream);
     stream.SerializeInt("GameState", (int)this.GameState);;
     stream.SerializeString("HexGridMatching", this.HexGridMatching);
     stream.SerializeInt("SoldierCount", this.SoldierCount);
     stream.SerializeInt("EnemyCount", this.EnemyCount);
     if (stream.DeepSerialize) stream.SerializeArray("Soldier", this.Soldier);
     if (stream.DeepSerialize) stream.SerializeArray("Enemy", this.Enemy);
     if (stream.DeepSerialize) stream.SerializeArray("Memebers", this.Memebers);
 }
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize) stream.SerializeObject("Player", this.Player);
     stream.SerializeString("GameFlowState", this.GameFlowState.Name);;
     if (stream.DeepSerialize) stream.SerializeArray("Coins", this.Coins);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Saves
 /// </summary>
 /// <param name="storage"></param>
 /// <param name="stream"></param>
 /// <param name="viewModels"></param>
 public void Save(ISerializerStorage storage, ISerializerStream stream, IEnumerable <ViewModel> viewModels = null)
 {
     stream.SerializeArray("ViewModels", viewModels ?? PersitantViewModels.Values);
     storage.Save(stream);
 }
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     if (stream.DeepSerialize) stream.SerializeObject("Player", this.Player);
     stream.SerializeVector3("SpawnPoint", this.SpawnPoint);
     stream.SerializeBool("GameOver", this.GameOver);
     stream.SerializeString("NotificationText", this.NotificationText);
     if (stream.DeepSerialize) stream.SerializeArray("Asteroids", this.Asteroids);
 }
 public override void Write(ISerializerStream stream)
 {
     base.Write(stream);
     stream.SerializeFloat("FireRate", this.FireRate);
     if (stream.DeepSerialize) stream.SerializeArray("Projectiles", this.Projectiles);
 }