コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public virtual void Format0EHandler(ServerFormat0E format)
 {
 }