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); }
private static void Share(GroupSpawnBegin data) { _GroupSpawnBegin = data; }