Пример #1
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.ActerId = stream.DeserializeInt("ActerId");;
     this.Ready   = stream.DeserializeBool("Ready");;
     this.IsLocal = stream.DeserializeBool("IsLocal");;
 }
 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");;
 }
Пример #3
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");;
 }
Пример #4
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"));
     }
 }
Пример #5
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.IsActive = stream.DeserializeBool("IsActive");;
 }
Пример #6
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Finished = stream.DeserializeBool("Finished");;
 }
 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"));
     }
 }
 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"));
 }
Пример #9
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.IsActive = stream.DeserializeBool("IsActive");;
 }
 public override void Read(ISerializerStream stream) {
     base.Read(stream);
     this.Health = stream.DeserializeFloat("Health");;
     this.Max_Health = stream.DeserializeFloat("Max_Health");;
     this.AttackSpeed = stream.DeserializeInt("AttackSpeed");;
     this.Movement = (MoveStyle)stream.DeserializeInt("Movement");;
     this.Power = stream.DeserializeInt("Power");;
     this.isAttack = stream.DeserializeBool("isAttack");;
     this.Action = (ActionStyle)stream.DeserializeInt("Action");;
     this.MAXROUNDS = stream.DeserializeInt("MAXROUNDS");;
     this.Physique = stream.DeserializeFloat("Physique");;
     this.HitPoint = stream.DeserializeInt("HitPoint");;
     this.WeaponProficieny = stream.DeserializeInt("WeaponProficieny");;
     this.Dodge = stream.DeserializeFloat("Dodge");;
     this.Hurt = stream.DeserializeFloat("Hurt");;
     this.Dead = stream.DeserializeFloat("Dead");;
     this.InitialMorale = stream.DeserializeInt("InitialMorale");;
     this.Prestige = stream.DeserializeInt("Prestige");;
     this.DEBUG = stream.DeserializeBool("DEBUG");;
     this.counter = stream.DeserializeInt("counter");;
     this.Counter = stream.DeserializeInt("Counter");;
     this.UpdatePerRound = stream.DeserializeInt("UpdatePerRound");;
     this.ElementsPerSecond = stream.DeserializeInt("ElementsPerSecond");;
     this.WarTimeLimitInSecond = stream.DeserializeInt("WarTimeLimitInSecond");;
     this.starttime = stream.DeserializeFloat("starttime");;
     this.TimeStarted = stream.DeserializeBool("TimeStarted");;
     this.WeaponProficiency = stream.DeserializeInt("WeaponProficiency");;
     this.moraleStandard = stream.DeserializeInt("moraleStandard");;
     		if (stream.DeepSerialize) this.Opponent = stream.DeserializeObject<EntityViewModel>("Opponent");;
     this.BattleState = (BattleState)stream.DeserializeInt("BattleState");;
     this.Career = (Career)stream.DeserializeInt("Career");;
     this.Moving = stream.DeserializeBool("Moving");;
     this.Sense = (SenseStyle)stream.DeserializeInt("Sense");;
 }
 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);
     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");;
 }
 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.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");;
 }