Esempio n. 1
0
        public void Restore(GameSession.GameStorage reader)
        {
            leftrightRot = reader.ReadSingle();
            updownRot    = reader.ReadSingle();

            cameraPosition = reader.ReadVector3();

            cameraHeight = reader.ReadSingle();

            LookAt = reader.ReadVector3();

            sideVector = reader.ReadVector3();

            _DrawDistance = reader.ReadSingle();
            AspectRatio   = reader.ReadSingle();

            viewMatrix = reader.ReadMatrix();

            viewMatrixBackShifted = reader.ReadMatrix();

            projectionMatrix = reader.ReadMatrix();

            BigProjectionMatrix = reader.ReadMatrix();
        }
Esempio n. 2
0
 public void Restore(GameSession.GameStorage storage)
 {
     this.Iron      = storage.ReadSingle();
     this.Copper    = storage.ReadSingle();
     this.Aluminium = storage.ReadSingle();
     this.Lithium   = storage.ReadSingle();
     this.Titanium  = storage.ReadSingle();
     this.Nickel    = storage.ReadSingle();
     this.Silver    = storage.ReadSingle();
     this.Tungsten  = storage.ReadSingle();
     this.Platinum  = storage.ReadSingle();
     this.Gold      = storage.ReadSingle();
     this.Lead      = storage.ReadSingle();
     this.Uranium   = storage.ReadSingle();
 }