Exemplo n.º 1
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"));
 }
Exemplo n.º 2
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Life = stream.DeserializeFloat("Life");;
     if (stream.DeepSerialize)
     {
         this.PowerUp = stream.DeserializeObject <PowerUpBaseViewModel>("PowerUp");
     }
     this.Position = stream.DeserializeVector3("Position");;
 }
Exemplo n.º 3
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");;
 }
Exemplo n.º 4
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"));
     }
 }
Exemplo n.º 5
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"));
     }
 }
Exemplo n.º 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"));
     }
 }
Exemplo n.º 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");;
 }
 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);
     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);
     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.Life = stream.DeserializeFloat("Life");;
     if (stream.DeepSerialize) this.PowerUp = stream.DeserializeObject<PowerUpBaseViewModel>("PowerUp");
             this.Position = stream.DeserializeVector3("Position");;
 }
 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");;
 }