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:
co-authored by
Claude Opus 5.5
parent
9f748eb05a
commit
9077aa389a
@@ -3,13 +3,13 @@
|
||||
#include "eter_net/Packet.h"
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
namespace ava2 {
|
||||
void initItem();
|
||||
void initPlayer();
|
||||
void initchrmgr();
|
||||
void initchr();
|
||||
void initChat();
|
||||
void initsnd();
|
||||
void initBackground();
|
||||
void GlobalToLocalPosition(int32_t& x,int32_t& y);
|
||||
@@ -31,6 +31,30 @@ struct PlayerItemSlot {
|
||||
PlayerItemSlot GetPlayerItem(int slot);
|
||||
void SetPlayerItem(int slot, uint32_t vnum, int count);
|
||||
void ResetPlayerState();
|
||||
void AppendPartyMember(uint32_t pid,const std::string& name);
|
||||
void LinkPartyMember(uint32_t pid,uint32_t vid);
|
||||
void UnlinkPartyMember(uint32_t pid);
|
||||
void UpdatePartyMemberInfo(uint32_t pid,uint8_t state,uint8_t hp);
|
||||
void UpdatePartyMemberAffect(uint32_t pid,uint8_t slot,int16_t affect);
|
||||
bool GetPartyMemberState(uint32_t pid,uint8_t* state);
|
||||
bool PartyMemberPIDToVID(uint32_t pid,uint32_t* vid);
|
||||
bool IsPartyMemberByVID(uint32_t vid);
|
||||
void RememberChallengeInstance(uint32_t vid);
|
||||
void RememberRevengeInstance(uint32_t vid);
|
||||
void RememberCantFightInstance(uint32_t vid);
|
||||
void ForgetInstance(uint32_t vid);
|
||||
void SetKillLOG(const int32_t* log);
|
||||
void NEW_ClearSkillData(bool all);
|
||||
void ResetItemDatabase();
|
||||
bool LoadItemList(const std::string& path);
|
||||
bool LoadItemDescriptions(const std::string& path);
|
||||
bool LoadItemTable(const std::string& path);
|
||||
struct ItemScaleInfo { float scaleX=0,scaleY=0,scaleZ=0,positionX=0,positionY=0,positionZ=0; };
|
||||
bool LoadItemScale(const std::string& path);
|
||||
bool GetItemScale(uint32_t vnum,uint32_t pos,ItemScaleInfo* out);
|
||||
bool GetItemNameAndType(uint32_t vnum,std::string* name,int* type);
|
||||
bool IsPlayerEquipmentItem(uint8_t window,uint16_t cell);
|
||||
bool GetItemTypeAndSubType(uint32_t vnum,int* type,int* subType);
|
||||
void ClearPlayerPythonWindow();
|
||||
void SetPlayerSkill(int slot,int index);
|
||||
void SetPlayerSkillLevel(int index,int grade,int level);
|
||||
@@ -38,6 +62,7 @@ void SetPlayerLegacySkillLevel(int index,int level);
|
||||
void AddPlayerQuickSlot(int index,uint8_t type,uint8_t pos);
|
||||
void DeletePlayerQuickSlot(int index);
|
||||
void SwapPlayerQuickSlots(int source,int target);
|
||||
void SetPlayerItemCount(uint8_t window,uint16_t cell,uint32_t count);
|
||||
void SetPlayerItemData(uint8_t window, uint16_t cell, const TItemData& data);
|
||||
TItemData GetPlayerItemData(uint8_t window, uint16_t cell);
|
||||
bool UsePlayerItem(int window, int slot, std::string& outEquippedWeaponModel, std::string& outActionMessage);
|
||||
@@ -47,6 +72,7 @@ std::string GetWeaponModelPathByVnum(uint32_t vnum);
|
||||
std::vector<Render3DDraw> GetAllActiveChrDraws();
|
||||
|
||||
void SetMainCharacterPosition(float x, float y, float z);
|
||||
const std::string& GetMainCharacterName();
|
||||
void SetMainCharacterName(const std::string& name);
|
||||
long long GetPlayerStatusPoint(int type);
|
||||
void SetPlayerStatusPoint(int type, long long value);
|
||||
@@ -55,5 +81,9 @@ class TerrainHeightmap;
|
||||
TerrainHeightmap* GetActiveBackgroundTerrain();
|
||||
void SetActiveBackgroundTerrain(std::unique_ptr<TerrainHeightmap> terrain);
|
||||
bool LoadBackgroundMap(const std::string& mapName, float x = 0.0f, float y = 0.0f, float z = 0.0f);
|
||||
// CPythonBackground::IsMapOutdoor + CMapOutdoor GetName/GetBaseXY/GetTerrainCount for the loaded map
|
||||
// (setting.txt "mapsize" / "baseposition"); nullptr while no map is loaded.
|
||||
struct OutdoorMapInfo { std::string name; uint32_t baseX=0, baseY=0; int16_t terrainCountX=0, terrainCountY=0; };
|
||||
const OutdoorMapInfo* GetOutdoorMap();
|
||||
} // namespace ava2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user