Exemple #1
0
        public SNO(int sno)
        {
            SNOID = sno;

            CachedSNOEntry thisEntry = ObjectCache.cacheSnoCollection[sno];

            if (sno > 0)
            {
                SNOID              = thisEntry.SNOID;
                _actortype         = thisEntry.Actortype;
                _targettype        = thisEntry.targetType;
                _monstersize       = thisEntry.Monstersize;
                _monstertype       = thisEntry.Monstertype;
                _collisionradius   = thisEntry.CollisionRadius;
                _actorsphereradius = thisEntry.ActorSphereRadius;
                _CanBurrow         = thisEntry.CanBurrow;
                _GrantsNoXP        = thisEntry.GrantsNoXP;
                _DropsNoLoot       = thisEntry.DropsNoLoot;
                _IsBarricade       = thisEntry.IsBarricade;
                _internalname      = thisEntry.InternalName;
                _obstacletype      = thisEntry.Obstacletype;
                _gizmotype         = thisEntry.Gizmotype;
                //this._RunningRate=thisEntry.RunningRate;
                IsFinalized = thisEntry.IsFinalized;
            }
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            //Check for null and compare run-time types.
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            CachedSNOEntry p = (CachedSNOEntry)obj;

            return(SNOID == p.SNOID);
        }
Exemple #3
0
 public CachedSNOEntry(CachedSNOEntry parent)
     : base(parent)
 {
 }
Exemple #4
0
 public CachedSNOEntry(CachedSNOEntry parent)
     : base(parent)
 {
 }
Exemple #5
0
        internal static void IgnoreThisObject(CachedSNOEntry snoObj, int RAGUID, bool removal = true, bool blacklistSNOID = true)
        {
            //Logger.DBLog.InfoFormat("[Blacklist] -- RAGUID {0} SNOID {1} ({2})", snoObj.SNOID, RAGUID, snoObj.InternalName);

            int sno, raguid;
            sno = snoObj.SNOID;
            raguid = RAGUID;

            //Add to our blacklist so we don't create it again..
            hashRGUIDIgnoreBlacklist.Add(raguid);

            if (blacklistSNOID)
                //Blacklist SNO so we don't create it ever again!
                hashActorSNOIgnoreBlacklist.Add(sno);

            if (removal)
            {
                //Clear SNO cache entries..
                ObjectCache.cacheSnoCollection.Remove(snoObj.SNOID);
                //Clear previous cache entries..
                if (ObjectCache.Objects.ContainsKey(raguid))
                    ObjectCache.Objects.Remove(raguid);
            }
        }