Ejemplo n.º 1
0
        public StoredSettings(StoredSettings oldSettings, bool preserveSettings, bool preserveTriggers, bool preserveTargetProfile) : base()
        {
            //Stuff From Old Settings
            if (!preserveSettings)
            {
                return;
            }

            this.Mode = oldSettings.Mode;
            this.StoredCustomBooleans   = oldSettings.StoredCustomBooleans;
            this.StoredCustomCounters   = oldSettings.StoredCustomCounters;
            this.TotalDamageAccumulated = oldSettings.TotalDamageAccumulated;
            this.LastDamageTakenTime    = oldSettings.LastDamageTakenTime;

            //Triggers
            if (preserveTriggers)
            {
                this.Triggers            = oldSettings.Triggers;
                this.DamageTriggers      = oldSettings.DamageTriggers;
                this.CommandTriggers     = oldSettings.CommandTriggers;
                this.CompromisedTriggers = oldSettings.CompromisedTriggers;
            }

            //TargetProfile
            if (preserveTargetProfile)
            {
                this.CustomTargetProfile   = oldSettings.CustomTargetProfile;
                this.CurrentTargetEntityId = oldSettings.CurrentTargetEntityId;
            }

            this.SetRotation(RotationDirection);
        }
Ejemplo n.º 2
0
 public void SetupReferences(NewAutoPilotSystem autopilot, BroadcastSystem broadcast, DespawnSystem despawn, ExtrasSystem extras, OwnerSystem owners, StoredSettings settings, IBehavior behavior)
 {
     this._autopilot = autopilot;
     this._broadcast = broadcast;
     this._despawn   = despawn;
     this._extras    = extras;
     this._owner     = owners;
     this._settings  = settings;
     this._behavior  = behavior;
 }
Ejemplo n.º 3
0
        public StoredSettings(StoredSettings oldSettings, bool preserveSettings, bool preserveTriggers, bool preserveTargetProfile) : base()
        {
            //Stuff From Old Settings
            if (!preserveSettings)
            {
                return;
            }

            //this.Mode = oldSettings.Mode;
            this.StoredCustomBooleans   = oldSettings.StoredCustomBooleans;
            this.StoredCustomCounters   = oldSettings.StoredCustomCounters;
            this.TotalDamageAccumulated = oldSettings.TotalDamageAccumulated;
            this.LastDamageTakenTime    = oldSettings.LastDamageTakenTime;
            this.RotationDirection      = oldSettings.RotationDirection;
            this.BlockOrientation       = oldSettings.BlockOrientation;
            this.DespawnCoords          = oldSettings.DespawnCoords;
            this.StoredCoords           = oldSettings.StoredCoords;
            this.StartCoords            = oldSettings.StartCoords;
            this.LastDamagerEntity      = oldSettings.LastDamagerEntity;
            this.AutoPilotFlags         = oldSettings.AutoPilotFlags;
            this.APDataMode             = oldSettings.APDataMode;

            //Triggers
            if (preserveTriggers)
            {
                this.Triggers            = oldSettings.Triggers;
                this.DamageTriggers      = oldSettings.DamageTriggers;
                this.CommandTriggers     = oldSettings.CommandTriggers;
                this.CompromisedTriggers = oldSettings.CompromisedTriggers;
            }
            else
            {
                IgnoreTriggers = true;
            }

            //TargetProfile
            if (preserveTargetProfile)
            {
                this.CustomTargetProfile   = oldSettings.CustomTargetProfile;
                this.CurrentTargetEntityId = oldSettings.CurrentTargetEntityId;
            }

            this.SetRotation(RotationDirection);
        }
Ejemplo n.º 4
0
 public void SetupReferences(StoredSettings settings)
 {
     _settings = settings;
 }