コード例 #1
0
        private static GroupSpawnBegin Parse(Packet packet)
        {
            GroupSpawnBegin data = new GroupSpawnBegin();

            byte   action   = packet.ReadUInt8();
            ushort mobCount = packet.ReadUInt16();

            data.MobCount = mobCount;
            if (action == 0x01)
            {
                data.Type = GroupSpawnType.Spawn;
            }
            else if (action == 0x02)
            {
                data.Type = GroupSpawnType.Despawn;
            }

            return(data);
        }
コード例 #2
0
 private static void Share(GroupSpawnBegin data)
 {
     _GroupSpawnBegin = data;
 }