예제 #1
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");;
 }
예제 #2
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"));
     }
 }
예제 #3
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Point   = stream.DeserializeInt("Point");;
     this.AddTime = stream.DeserializeFloat("AddTime");;
     this.Expire  = stream.DeserializeFloat("Expire");;
 }
예제 #4
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");;
 }
예제 #5
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.CurrentWeaponIndex = stream.DeserializeInt("CurrentWeaponIndex");;
     if (stream.DeepSerialize)
     {
         this.Weapons.Clear();
         this.Weapons.AddRange(stream.DeserializeObjectArray <FPSWeaponViewModel>("Weapons"));
     }
 }
예제 #6
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");;
 }
예제 #7
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");;
 }
예제 #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"));
     }
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.TimeLimit = stream.DeserializeFloat("TimeLimit");;
     this.Score = stream.DeserializeInt("Score");;
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Point = stream.DeserializeInt("Point");;
     this.AddTime = stream.DeserializeFloat("AddTime");;
     this.Expire = stream.DeserializeFloat("Expire");;
 }
 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);
     this.AuthorizationState = (AuthorizationState)stream.DeserializeInt("AuthorizationState");;
 }
예제 #14
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"));
     }
 }
예제 #15
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.AuthorizationState = (AuthorizationState)stream.DeserializeInt("AuthorizationState");;
     this.Username           = stream.DeserializeString("Username");;
 }
 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");;
 }
예제 #17
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.PageMode = (PageMode)stream.DeserializeInt("PageMode");;
 }
 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.SoldierState = (SoldierState)stream.DeserializeInt("SoldierState");;
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Position = stream.DeserializeVector3("Position");;
     this.Health = stream.DeserializeInt("Health");;
 }
예제 #21
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"));
 }
예제 #22
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.TimeLimit = stream.DeserializeFloat("TimeLimit");;
     this.Score     = stream.DeserializeInt("Score");;
 }
 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");;
 }