AVA2 client Windows parity passes (gr2 BitKnit2/64-bit, GamePhase handlers, python modules)

- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves
- net: remaining GamePhase handlers, generated GC packet table
- python: event/chat/chr/minimap/guild/quest/messenger/shop-search and
  other native modules ported against the AVA2 Windows client
- render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain
  without baked shade; cape/NPC equipment attachment
- tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md

Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame,
camera bindings, main.cpp fake-content removal) is still in progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-08 10:43:01 +09:00
co-authored by Claude Opus 5.5
parent 9f748eb05a
commit 9077aa389a
145 changed files with 22692 additions and 6584 deletions
+32
View File
@@ -0,0 +1,32 @@
#pragma once
// State semantics ported from AVA2 UserInterface/PythonGuild.cpp.
#include <array>
#include <cstdint>
#include <map>
#include <string>
#include <vector>
namespace ava2 {
struct GuildState {
struct Member { uint32_t pid;std::string name;uint8_t grade,job,level,general;uint32_t offer; };
struct Grade { uint8_t authority;std::string name; };
struct Comment { uint32_t id;std::string name,text; };
struct Info { uint32_t id=0,master=0,level=0,exp=0,count=0,maxCount=0,money=0;std::string name;uint8_t hasLand=0; } info;
struct Skill { uint8_t points=0;std::array<uint8_t,12> levels{};uint16_t power=0,maxPower=0; } skill;
bool enabled=false;
uint32_t levelSum=0,levelAverage=0,offerSum=0;
std::vector<Member> members;
std::vector<Comment> comments;
std::map<uint32_t,Grade> grades;
std::map<uint32_t,std::string> names;
std::map<uint32_t,uint32_t> skillSlots;
std::array<uint32_t,6> enemies{};
Member* ByPID(uint32_t pid);
Member* ByName(const std::string& name);
void RegisterMember(const Member& member);
void RemoveMember(uint32_t pid);
void StartWar(uint32_t enemy);
void EndWar(uint32_t enemy);
void Destroy(); // Windows intentionally retains comments, offer sum and slot mapping.
};
GuildState& GetGuildState();
}