<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeagueSandbox.GameServer.Core.Logic.PacketHandlers
{
    public enum GameCmd : uint
    {
        PKT_S2C_MoveAns = 0x61,
        PKT_S2C_CharStats = 0xC4 //?
    };

    public enum PacketCmdS2C : byte
    {
        PKT_S2C_MoveAns = 0x61, //?
        PKT_S2C_KeyCheck = 0x00,
        PKT_S2C_UnpauseGame = 0x0A,
        PKT_S2C_RemoveItem = 0x0B,
        PKT_S2C_NextAutoAttack = 0x0C,
        PKT_S2C_EditMessageBoxTop = 0x0D,
        PKT_S2C_UnlockCamera = 0x0E, //?? Well it unlocks camera so...
        PKT_S2C_AddXP = 0x10,
        PKT_S2C_EndSpawn = 0x11,
        PKT_S2C_GameSpeed = 0x12,
        PKT_S2C_SkillUp = 0x15,
        PKT_S2C_FloatingText = 0x18,
        PKT_S2C_BeginAutoAttack = 0x1A,
        PKT_S2C_AddGold = 0x22,
        PKT_S2C_FogUpdate2 = 0x23,
        PKT_S2C_MoveCamera = 0x25,
        PKT_S2C_EditBuff = 0x1C,
        PKT_S2C_PlayerInfo = 0x2A,
        PKT_S2C_InhibitorState = 0x2B, //ayyy lmao
        PKT_S2C_InhibitorDeathAnimation = 0x89,
        PKT_S2C_ViewAns = 0x2C,
        PKT_S2C_ChampionRespawn = 0x2F,
        PKT_S2C_StopAutoAttack = 0x34,
        PKT_S2C_DeleteObject = 0x35, // not sure what this is, happens when turret leaves vision
        PKT_S2C_MessageBoxTop = 0x36,
        PKT_S2C_SpawnProjectile = 0x3B,
        PKT_S2C_SwapItems = 0x3E,
        PKT_S2C_LevelUp = 0x3F,
        PKT_S2C_AttentionPing = 0x40,
        PKT_S2C_Emotion = 0x42,
        PKT_S2C_Announce = 0x45,
        PKT_S2C_HeroSpawn = 0x4C,
        // Packet 0xC0 format is [Net ID 1] [Net ID 2], purpose still unknown
        PKT_S2C_GameTimer = 0xC1,
        PKT_S2C_GameTimerUpdate = 0xC2,
        PKT_S2C_FaceDirection = 0x50,
        PKT_S2C_LeaveVision = 0x51,
        PKT_S2C_SynchVersion = 0x54,
        PKT_S2C_HighlightUnit = 0x59,
        PKT_S2C_BlueTip = 0x55,
        PKT_S2C_DestroyProjectile = 0x5A,
        PKT_S2C_StartGame = 0x5C,
        PKT_S2C_ChampionDie = 0x5E,
        PKT_S2C_StartSpawn = 0x62,
        PKT_S2C_Dash = 0x64,
        PKT_S2C_DamageDone = 0x65,
        PKT_S2C_LoadHero = 0x65,
        PKT_S2C_LoadName = 0x66,
        PKT_S2C_LoadScreenInfo = 0x67,
        PKT_S2C_ChatBoxMessage = 0x68,
        PKT_S2C_SetTarget = 0x6A,
        PKT_S2C_SetAnimation = 0x6B,
        PKT_S2C_ShowProjectile = 0x6E,
        PKT_S2C_BuyItemAns = 0x6F,
        PKT_S2C_AddBuff = 0xB7,
        PKT_S2C_RemoveBuff = 0x7B,
        PKT_S2C_SetCooldown = 0x85,
        PKT_S2C_SpawnParticle = 0x87,
        PKT_S2C_QueryStatusAns = 0x88,
        PKT_S2C_ExplodeNexus = 0x89,
        PKT_S2C_Quest = 0x8C,
        PKT_S2C_World_SendGameNumber = 0x92,
        PKT_S2C_Ping_Load_Info = 0x95,
        PKT_S2C_UpdateModel = 0x97,
        PKT_S2C_TurretSpawn = 0x9D,
        PKT_S2C_NPC_Hide = 0x9E, // (4.18) not sure what this became
        PKT_S2C_MessageBoxRight = 0xA0,
        PKT_S2C_PauseGame = 0xA1,
        PKT_S2C_RemoveMessageBoxTop = 0xA2,
        PKT_S2C_RemoveMessageBoxRight = 0xA7,
        PKT_S2C_Announce2 = 0xA3, // ? idk
        PKT_S2C_SurrenderResult = 0xA5,
        PKT_S2C_EnableFOW = 0xAB,
        PKT_S2C_SetHealth = 0xAE,
        PKT_S2C_SpellAnimation = 0xB0,
        PKT_S2C_EditMessageBoxRight = 0xB1,
        PKT_S2C_BasicTutorialMessageWindow = 0xB3,
        PKT_S2C_RemoveHighlightUnit = 0xB4,
        PKT_S2C_CastSpellAns = 0xB5,
        PKT_S2C_AFKWarningWindow = 0xB8,
        PKT_S2C_ObjectSpawn = 0xBA,
        PKT_S2C_HideUi = 0xBC,
        PKT_S2C_SetTarget2 = 0xC0,
        PKT_S2C_CharStats = 0xC4,
        PKT_S2C_GameEnd = 0xC6,
        PKT_S2C_Surrender = 0xC9,

        PKT_S2C_LevelPropSpawn = 0xD0,
        PKT_S2C_DominionPoints = 0xD9,
        PKT_S2C_DebugMessage = 0xF7,
        PKT_S2C_MessagesAvailable = 0xF9,
        PKT_S2C_Extended = 0xFE,
        PKT_S2C_Batch = 0xFF
    };

    public enum PacketCmdC2S
    {
        PKT_C2S_ChatBoxMessage = 0x68,
        PKT_C2S_KeyCheck = 0x00,
        PKT_C2S_World_SendGameNumber = 0x92,

        PKT_C2S_HeartBeat = 0x08,
        PKT_C2S_SellItem = 0x09,
        PKT_C2S_QueryStatusReq = 0x14,
        PKT_C2S_Ping_Load_Info = 0x16,
        PKT_C2S_SwapItems = 0x20,
        PKT_C2S_ViewReq = 0x2E,
        PKT_C2S_SkillUp = 0x39,
        PKT_C2S_AutoAttackOption = 0x47,
        PKT_C2S_Emotion = 0x48,
        PKT_C2S_StartGame = 0x52,
        PKT_C2S_ScoreBord = 0x56,<commit_msg>Fixed typo<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeagueSandbox.GameServer.Core.Logic.PacketHandlers
{
    public enum GameCmd : uint
    {
        PKT_S2C_MoveAns = 0x61,
        PKT_S2C_CharStats = 0xC4 //?
    };

    public enum PacketCmdS2C : byte
    {
        PKT_S2C_MoveAns = 0x61, //?
        PKT_S2C_KeyCheck = 0x00,
        PKT_S2C_UnpauseGame = 0x0A,
        PKT_S2C_RemoveItem = 0x0B,
        PKT_S2C_NextAutoAttack = 0x0C,
        PKT_S2C_EditMessageBoxTop = 0x0D,
        PKT_S2C_UnlockCamera = 0x0E, //?? Well it unlocks camera so...
        PKT_S2C_AddXP = 0x10,
        PKT_S2C_EndSpawn = 0x11,
        PKT_S2C_GameSpeed = 0x12,
        PKT_S2C_SkillUp = 0x15,
        PKT_S2C_FloatingText = 0x18,
        PKT_S2C_BeginAutoAttack = 0x1A,
        PKT_S2C_AddGold = 0x22,
        PKT_S2C_FogUpdate2 = 0x23,
        PKT_S2C_MoveCamera = 0x25,
        PKT_S2C_EditBuff = 0x1C,
        PKT_S2C_PlayerInfo = 0x2A,
        PKT_S2C_InhibitorState = 0x2B, //ayyy lmao
        PKT_S2C_InhibitorDeathAnimation = 0x89,
        PKT_S2C_ViewAns = 0x2C,
        PKT_S2C_ChampionRespawn = 0x2F,
        PKT_S2C_StopAutoAttack = 0x34,
        PKT_S2C_DeleteObject = 0x35, // not sure what this is, happens when turret leaves vision
        PKT_S2C_MessageBoxTop = 0x36,
        PKT_S2C_SpawnProjectile = 0x3B,
        PKT_S2C_SwapItems = 0x3E,
        PKT_S2C_LevelUp = 0x3F,
        PKT_S2C_AttentionPing = 0x40,
        PKT_S2C_Emotion = 0x42,
        PKT_S2C_Announce = 0x45,
        PKT_S2C_HeroSpawn = 0x4C,
        // Packet 0xC0 format is [Net ID 1] [Net ID 2], purpose still unknown
        PKT_S2C_GameTimer = 0xC1,
        PKT_S2C_GameTimerUpdate = 0xC2,
        PKT_S2C_FaceDirection = 0x50,
        PKT_S2C_LeaveVision = 0x51,
        PKT_S2C_SynchVersion = 0x54,
        PKT_S2C_HighlightUnit = 0x59,
        PKT_S2C_BlueTip = 0x55,
        PKT_S2C_DestroyProjectile = 0x5A,
        PKT_S2C_StartGame = 0x5C,
        PKT_S2C_ChampionDie = 0x5E,
        PKT_S2C_StartSpawn = 0x62,
        PKT_S2C_Dash = 0x64,
        PKT_S2C_DamageDone = 0x65,
        PKT_S2C_LoadHero = 0x65,
        PKT_S2C_LoadName = 0x66,
        PKT_S2C_LoadScreenInfo = 0x67,
        PKT_S2C_ChatBoxMessage = 0x68,
        PKT_S2C_SetTarget = 0x6A,
        PKT_S2C_SetAnimation = 0x6B,
        PKT_S2C_ShowProjectile = 0x6E,
        PKT_S2C_BuyItemAns = 0x6F,
        PKT_S2C_AddBuff = 0xB7,
        PKT_S2C_RemoveBuff = 0x7B,
        PKT_S2C_SetCooldown = 0x85,
        PKT_S2C_SpawnParticle = 0x87,
        PKT_S2C_QueryStatusAns = 0x88,
        PKT_S2C_ExplodeNexus = 0x89,
        PKT_S2C_Quest = 0x8C,
        PKT_S2C_World_SendGameNumber = 0x92,
        PKT_S2C_Ping_Load_Info = 0x95,
        PKT_S2C_UpdateModel = 0x97,
        PKT_S2C_TurretSpawn = 0x9D,
        PKT_S2C_NPC_Hide = 0x9E, // (4.18) not sure what this became
        PKT_S2C_MessageBoxRight = 0xA0,
        PKT_S2C_PauseGame = 0xA1,
        PKT_S2C_RemoveMessageBoxTop = 0xA2,
        PKT_S2C_RemoveMessageBoxRight = 0xA7,
        PKT_S2C_Announce2 = 0xA3, // ? idk
        PKT_S2C_SurrenderResult = 0xA5,
        PKT_S2C_EnableFOW = 0xAB,
        PKT_S2C_SetHealth = 0xAE,
        PKT_S2C_SpellAnimation = 0xB0,
        PKT_S2C_EditMessageBoxRight = 0xB1,
        PKT_S2C_BasicTutorialMessageWindow = 0xB3,
        PKT_S2C_RemoveHighlightUnit = 0xB4,
        PKT_S2C_CastSpellAns = 0xB5,
        PKT_S2C_AFKWarningWindow = 0xB8,
        PKT_S2C_ObjectSpawn = 0xBA,
        PKT_S2C_HideUi = 0xBC,
        PKT_S2C_SetTarget2 = 0xC0,
        PKT_S2C_CharStats = 0xC4,
        PKT_S2C_GameEnd = 0xC6,
        PKT_S2C_Surrender = 0xC9,

        PKT_S2C_LevelPropSpawn = 0xD0,
        PKT_S2C_DominionPoints = 0xD9,
        PKT_S2C_DebugMessage = 0xF7,
        PKT_S2C_MessagesAvailable = 0xF9,
        PKT_S2C_Extended = 0xFE,
        PKT_S2C_Batch = 0xFF
    };

    public enum PacketCmdC2S
    {
        PKT_C2S_ChatBoxMessage = 0x68,
        PKT_C2S_KeyCheck = 0x00,
        PKT_C2S_World_SendGameNumber = 0x92,

        PKT_C2S_HeartBeat = 0x08,
        PKT_C2S_SellItem = 0x09,
        PKT_C2S_QueryStatusReq = 0x14,
        PKT_C2S_Ping_Load_Info = 0x16,
        PKT_C2S_SwapItems = 0x20,
        PKT_C2S_ViewReq = 0x2E,
        PKT_C2S_SkillUp = 0x39,
        PKT_C2S_AutoAttackOption = 0x47,
        PKT_C2S_Emotion = 0x48,
        PKT_C2S_StartGame = 0x52,
        PKT_C2S_Scoreboard = 0x56,
{'fraction_non_alphanumeric': 0.06142120600762161, 'fraction_numerical': 0.08451019950683704, 'mean_word_length': 2.3595632530120483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7482607', 'n_tokens_mistral': 4380, 'n_tokens_neox': 4053, 'n_words': 548}