Beispiel #1
0
 public override void SetState(ObjectState info)
 {
     base.SetState(info);
     Stage    = info.GetInt("Stage");
     RollRate = info.GetFloat("RollRate");
     Style    = info.GetInt("Style");
 }
Beispiel #2
0
 internal override void SetState(ObjectState info)
 {
     base.SetState(info);
     //_timeSinceLastShot = (int)info.GetValue("timeSinceLastShot", typeof(int));
     ShieldEnergy = info.GetInt("ShieldEnergy");
     Owner        = info.GetString("Owner");
 }
Beispiel #3
0
        internal virtual void SetState(ObjectState info)
        {
            _entityID   = info.GetInt("EntityID");
            _location.X = info.GetFloat("LocationX");
            _location.Y = info.GetFloat("LocationY");
            _height     = info.GetInt("Height");
            _width      = info.GetInt("Width");
            float Radius = info.GetFloat("Radius");

            _velocity.X = info.GetFloat("VelocityX");
            _velocity.Y = info.GetFloat("VelocityY");
            Orientation = info.GetFloat("Orientation");
            visualState = (VisualStates)info.GetInt("VisualState");
            Status      = (Status)info.GetInt("Status");
            Type        = (EntityType)info.GetInt("Type");
            age         = info.GetInt("Age");
        }
Beispiel #4
0
 public override void SetState(ObjectState info)
 {
     base.SetState(info);
     PlanetID = (Planets)info.GetInt("PlanetID");
 }