示例#1
0
        public void RequestCell(StreamConnection connection, uint instanceId, int x, int y)
        {
            var doodads   = WorldManager.Instance.GetInCell <Doodad>(instanceId, x, y).ToArray(); // TODO active worldId from character
            var requestId = connection.GetNextRequestId(doodads);
            var count     = Math.Min(doodads.Length, 30);
            var res       = new Doodad[count];

            Array.Copy(doodads, 0, res, 0, count);
            connection.SendPacket(new TCDoodadStreamPacket(requestId, count, res));
        }