/// <summary>
        /// Invoked when the objective is locked, initializing the portals in warcamps.
        /// They will be spawned depending on flag state.
        /// </summary>
        internal void ObjectiveUnlocked()
        {
            if (!Load()) // Useful when database has been updated at runtime
            {
                return;
            }

            if (_objectivePortal != null)
            {
                _region.RemoveObject(_objectivePortal);
                _objectivePortal = null;
            }

            if (_orderPortal == null)
            {
                _orderPortal  = new PortalToObjective(_orderPortalData, _objectivePortalData, _objective.Name);
                _destroPortal = new PortalToObjective(_destroPortalData, _objectivePortalData, _objective.Name);
            }
            int i = 0;
        }
Ejemplo n.º 2
0
 public void DespawnGuard()
 {
     Region.RemoveObject(Creature);
 }