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); }
public Actor() { parameters = new GameActor.TweakableParameters(); }