Example #1
0
            public void FromActor(GameActor actor)
            {
                Debug.Assert(!actor.InRecycleBin);

                position      = actor.Movement.Position;
                orientation   = actor.Movement.RotationZ;
                heightOffset  = actor.HeightOffset;
                color         = actor.ClassColor;
                creatableId   = actor.CreatableId;
                creatableName = actor.DisplayNameNumber;
                version       = actor.Version;

                // Clone the parameters instead of calling CopyTo so that the creatable flag
                // is preserved. CopyTo deliberately excludes this this field when copying.
                parameters = actor.LocalParameters.Clone() as GameActor.TweakableParameters;

                tintable = true;
                brain    = Brain.DeepCopy(actor.Brain);
            }
Example #2
0
 public Actor()
 {
     parameters = new GameActor.TweakableParameters();
 }