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; } }
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); }
public CachedSNOEntry(CachedSNOEntry parent) : base(parent) { }
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); } }