public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.IsAmazing = stream.DeserializeBool("IsAmazing");;
     this._TheStateMachineProperty.SetState(stream.DeserializeString("TheStateMachine"));
     this.SomeUnityType = stream.DeserializeVector3("SomeUnityType");;
 }
Пример #2
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.IsMoving = stream.DeserializeBool("IsMoving");;
     this._MovementStateMachineProperty.SetState(stream.DeserializeString("MovementStateMachine"));
     this.FiringCommand = stream.DeserializeBool("FiringCommand");;
     this._FireStateMachineProperty.SetState(stream.DeserializeString("FireStateMachine"));
     this.FireTimeOutElapsed = stream.DeserializeBool("FireTimeOutElapsed");;
     this.ShouldFire         = stream.DeserializeBool("ShouldFire");;
     this.AsteroidsDestroyed = stream.DeserializeInt("AsteroidsDestroyed");;
     if (stream.DeepSerialize)
     {
         this.Weapon = stream.DeserializeObject <BaseWeaponViewModel>("Weapon");
     }
     this.IsAlive       = stream.DeserializeBool("IsAlive");;
     this.MovementSpeed = stream.DeserializeFloat("MovementSpeed");;
 }
Пример #3
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this._WavesStateProperty.SetState(stream.DeserializeString("WavesState"));
     this.WaveKills        = stream.DeserializeInt("WaveKills");;
     this.KillsToNextWave  = stream.DeserializeInt("KillsToNextWave");;
     this.CurrentWave      = stream.DeserializeInt("CurrentWave");;
     this.SpawnWaitSeconds = stream.DeserializeInt("SpawnWaitSeconds");;
     this.EnemiesSpawned   = stream.DeserializeInt("EnemiesSpawned");;
 }
Пример #4
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     if (stream.DeepSerialize)
     {
         this.CanvasRoot = stream.DeserializeObject <CanvasRootViewModel>("CanvasRoot");
     }
     ;
     this._UIFlowStatusProperty.SetState(stream.DeserializeString("UIFlowStatus"));
 }
Пример #5
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.State = (TodoEditorState)stream.DeserializeInt("State");;
     if (stream.DeepSerialize)
     {
         this.TodoItem = stream.DeserializeObject <TodoItemViewModel>("TodoItem");
     }
     ;
     this.OriginContent = stream.DeserializeString("OriginContent");;
 }
Пример #6
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     if (stream.DeepSerialize)
     {
         this.CurrentPlayer = stream.DeserializeObject <FPSPlayerViewModel>("CurrentPlayer");
     }
     this.Score   = stream.DeserializeInt("Score");;
     this.Kills   = stream.DeserializeInt("Kills");;
     this.String1 = stream.DeserializeString("String1");;
     if (stream.DeepSerialize)
     {
         this.Enemies.Clear();
         this.Enemies.AddRange(stream.DeserializeObjectArray <FPSEnemyViewModel>("Enemies"));
     }
 }
Пример #7
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     if (stream.DeepSerialize)
     {
         this.Player = stream.DeserializeObject <PlayerShipViewModel>("Player");
     }
     this.SpawnPoint       = stream.DeserializeVector3("SpawnPoint");;
     this.GameOver         = stream.DeserializeBool("GameOver");;
     this.NotificationText = stream.DeserializeString("NotificationText");;
     if (stream.DeepSerialize)
     {
         this.Asteroids.Clear();
         this.Asteroids.AddRange(stream.DeserializeObjectArray <AsteroidViewModel>("Asteroids"));
     }
 }
Пример #8
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.ZoomIndex        = stream.DeserializeInt("ZoomIndex");;
     this.MaxZooms         = stream.DeserializeInt("MaxZooms");;
     this.WeaponType       = (WeaponType)stream.DeserializeInt("WeaponType");
     this.ReloadTime       = stream.DeserializeFloat("ReloadTime");;
     this.RoundSize        = stream.DeserializeInt("RoundSize");;
     this.MinSpread        = stream.DeserializeInt("MinSpread");;
     this.BurstSize        = stream.DeserializeInt("BurstSize");;
     this.RecoilSpeed      = stream.DeserializeFloat("RecoilSpeed");;
     this.FireSpeed        = stream.DeserializeFloat("FireSpeed");;
     this.BurstSpeed       = stream.DeserializeFloat("BurstSpeed");;
     this.SpreadMultiplier = stream.DeserializeFloat("SpreadMultiplier");;
     this._StateProperty.SetState(stream.DeserializeString("State"));
     this.Ammo = stream.DeserializeInt("Ammo");;
 }
Пример #9
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.TodoContent = stream.DeserializeString("TodoContent");;
     this.PageType    = (PageType)stream.DeserializeInt("PageType");;
     if (stream.DeepSerialize)
     {
         this.TodoEditor = stream.DeserializeObject <TodoEditorViewModel>("TodoEditor");
     }
     ;
     if (stream.DeepSerialize)
     {
         this.EventMask = stream.DeserializeObject <EventMaskViewModel>("EventMask");
     }
     ;
     if (stream.DeepSerialize)
     {
         this.TodoItems.Clear();
         this.TodoItems.AddRange(stream.DeserializeObjectArray <TodoItemViewModel>("TodoItems"));
     }
 }
Пример #10
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Modifier    = stream.DeserializeFloat("Modifier");;
     this.Description = stream.DeserializeString("Description");;
 }
Пример #11
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this._InGameStateProperty.SetState(stream.DeserializeString("InGameState"));
     this.IdleAnimalsCount = stream.DeserializeInt("IdleAnimalsCount");;
     this.NullAnimalsCount = stream.DeserializeInt("NullAnimalsCount");;
     this.IsDropping = stream.DeserializeBool("IsDropping");;
     if (stream.DeepSerialize) {
         this.AnimalCollections.Clear();
         this.AnimalCollections.AddRange(stream.DeserializeObjectArray<AnimalViewModel>("AnimalCollections"));
     }
 }
Пример #12
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.AnimalType = (AnimalType)stream.DeserializeInt("AnimalType");;
     this.SameCount = stream.DeserializeInt("SameCount");;
     this.needDestroy = stream.DeserializeBool("needDestroy");;
     this._AnimalStateProperty.SetState(stream.DeserializeString("AnimalState"));
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     if (stream.DeepSerialize) this.Player = stream.DeserializeObject<PlayerShipViewModel>("Player");
             this.SpawnPoint = stream.DeserializeVector3("SpawnPoint");;
             this.GameOver = stream.DeserializeBool("GameOver");;
             this.NotificationText = stream.DeserializeString("NotificationText");;
     if (stream.DeepSerialize) {
     this.Asteroids.Clear();
     this.Asteroids.AddRange(stream.DeserializeObjectArray<AsteroidViewModel>("Asteroids"));
     }
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
             this.Modifier = stream.DeserializeFloat("Modifier");;
             this.Description = stream.DeserializeString("Description");;
 }
 public override void Read(ISerializerStream stream) {
     base.Read(stream);
     this.GameState = (GameState)stream.DeserializeInt("GameState");;
     this.HexGridMatching = stream.DeserializeString("HexGridMatching");;
     this.SoldierCount = stream.DeserializeInt("SoldierCount");;
     this.EnemyCount = stream.DeserializeInt("EnemyCount");;
     if (stream.DeepSerialize) {
         this.Soldier.Clear();
         this.Soldier.AddRange(stream.DeserializeObjectArray<SoldierViewModel>("Soldier"));
     }
     if (stream.DeepSerialize) {
         this.Enemy.Clear();
         this.Enemy.AddRange(stream.DeserializeObjectArray<EnemyViewModel>("Enemy"));
     }
     if (stream.DeepSerialize) {
         this.Memebers.Clear();
         this.Memebers.AddRange(stream.DeserializeObjectArray<EntityViewModel>("Memebers"));
     }
 }
 public override void Read(ISerializerStream stream) {
     base.Read(stream);
     this.IsAmazing = stream.DeserializeBool("IsAmazing");;
     this._TheStateMachineProperty.SetState(stream.DeserializeString("TheStateMachine"));
     this.SomeUnityType = stream.DeserializeVector3("SomeUnityType");;
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     if (stream.DeepSerialize) this.Player = stream.DeserializeObject<CharacterViewModel>("Player");
     this._GameFlowStateProperty.SetState(stream.DeserializeString("GameFlowState"));
     if (stream.DeepSerialize) {
     this.Coins.Clear();
     this.Coins.AddRange(stream.DeserializeObjectArray<CoinViewModel>("Coins"));
     }
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.MovementIntention = (MovementIntention)stream.DeserializeInt("MovementIntention");
     this._MovementStateProperty.SetState(stream.DeserializeString("MovementState"));
     this.JumpIntention = (JumpIntention)stream.DeserializeInt("JumpIntention");
     this._JumpStateProperty.SetState(stream.DeserializeString("JumpState"));
             this.IsOnTheGround = stream.DeserializeBool("IsOnTheGround");;
             this.JumpLocked = stream.DeserializeBool("JumpLocked");;
             this.JumpsPerformed = stream.DeserializeInt("JumpsPerformed");;
             this.CoinsCollected = stream.DeserializeInt("CoinsCollected");;
             this.IsAlive = stream.DeserializeBool("IsAlive");;
             this.IsInvulnarable = stream.DeserializeBool("IsInvulnarable");;
             this.Lives = stream.DeserializeInt("Lives");;
 }
Пример #19
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.AuthorizationState = (AuthorizationState)stream.DeserializeInt("AuthorizationState");;
     this.Username           = stream.DeserializeString("Username");;
 }
Пример #20
0
 /// <summary>Will deserialize this view directly from a stream.</summary>
 public virtual void Read(ISerializerStream stream)
 {
     this.Identifier = stream.DeserializeString("Identifier");
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
             this.IsMoving = stream.DeserializeBool("IsMoving");;
     this._MovementStateMachineProperty.SetState(stream.DeserializeString("MovementStateMachine"));
             this.FiringCommand = stream.DeserializeBool("FiringCommand");;
     this._FireStateMachineProperty.SetState(stream.DeserializeString("FireStateMachine"));
             this.FireTimeOutElapsed = stream.DeserializeBool("FireTimeOutElapsed");;
             this.ShouldFire = stream.DeserializeBool("ShouldFire");;
             this.AsteroidsDestroyed = stream.DeserializeInt("AsteroidsDestroyed");;
     if (stream.DeepSerialize) this.Weapon = stream.DeserializeObject<BaseWeaponViewModel>("Weapon");
             this.IsAlive = stream.DeserializeBool("IsAlive");;
             this.MovementSpeed = stream.DeserializeFloat("MovementSpeed");;
 }