/// <summary> /// Use this to Remove Sprites /// It will remove them from ingame to who those effected. /// and invoke the objectmanager. /// </summary> public void Remove <T>() where T : Sprite, new() { var nearby = GetObjects <Aisling>(i => i.WithinRangeOf(this)); var response = new ServerFormat0E(Serial); foreach (var o in nearby) { o?.Client?.Send(response); } if (this is Monster) { DelObject(this as Monster); } if (this is Aisling) { DelObject(this as Aisling); } if (this is Money) { DelObject(this as Money); } if (this is Item) { DelObject(this as Item); } if (this is Mundane) { DelObject(this as Mundane); } Map?.Update(X, Y, TileContent.None); }
public virtual void Format0EHandler(ServerFormat0E format) { }