AVA2 cross-platform client parity baseline
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
#pragma once
|
||||
#include "eter_render/RenderCommands3D.h"
|
||||
#include "eter_net/Packet.h"
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
namespace ava2 {
|
||||
void initItem();
|
||||
void initPlayer();
|
||||
void initchrmgr();
|
||||
void initchr();
|
||||
void initChat();
|
||||
void initsnd();
|
||||
void initBackground();
|
||||
void GlobalToLocalPosition(int32_t& x,int32_t& y);
|
||||
void LocalToGlobalPosition(int32_t& x,int32_t& y);
|
||||
bool WarpBackgroundMap(uint32_t x,uint32_t y);
|
||||
|
||||
using SkillCastCallback = std::function<void(int quickSlot, int skillIndex)>;
|
||||
void SetPlayerSkillCastCallback(SkillCastCallback cb);
|
||||
void SetSkillCoolTime(int skillIndex, float coolTime);
|
||||
void SetSkillCoolTimeAt(int skillIndex,float coolTime,float now);
|
||||
|
||||
struct PlayerItemSlot {
|
||||
uint32_t vnum = 0;
|
||||
int count = 0;
|
||||
std::array<long, 8> sockets{};
|
||||
std::array<std::pair<int, int>, 15> attrs{};
|
||||
};
|
||||
|
||||
PlayerItemSlot GetPlayerItem(int slot);
|
||||
void SetPlayerItem(int slot, uint32_t vnum, int count);
|
||||
void ResetPlayerState();
|
||||
void ClearPlayerPythonWindow();
|
||||
void SetPlayerSkill(int slot,int index);
|
||||
void SetPlayerSkillLevel(int index,int grade,int level);
|
||||
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 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);
|
||||
bool MovePlayerItem(int srcWindow, int srcSlot, int dstWindow, int dstSlot, int count, std::string& outEquippedWeaponModel);
|
||||
std::string GetWeaponModelPathByVnum(uint32_t vnum);
|
||||
|
||||
std::vector<Render3DDraw> GetAllActiveChrDraws();
|
||||
|
||||
void SetMainCharacterPosition(float x, float y, float z);
|
||||
void SetMainCharacterName(const std::string& name);
|
||||
long long GetPlayerStatusPoint(int type);
|
||||
void SetPlayerStatusPoint(int type, long long value);
|
||||
|
||||
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);
|
||||
} // namespace ava2
|
||||
|
||||
Reference in New Issue
Block a user