- extension/src/{port,platform,codepage} -> src/; native_render -> src/host
(+ dxt, shaders/); libgr2 -> src/gr2; extension/third_party -> third_party
- extension/tests -> tests/port, libgr2/tests -> tests/gr2
- android-native -> android (build.sh, push-client.sh moved in)
- script -> scripts; tools/40250 -> tools/server; oracle -> tools/granny-oracle;
perf tools -> tools/perf
- all build trees under build/ (native, release, android, port-gate)
- xrender:: CMake aliases -> mt::; port-map ledger impl paths rewritten
No code changes. ctest 15/15, port_gate macos+android PASS, port_map check 0 errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
1.4 KiB
C++
59 lines
1.4 KiB
C++
#pragma once
|
|
|
|
class CPythonQuest : public CSingleton<CPythonQuest>
|
|
{
|
|
public:
|
|
struct SQuestInstance
|
|
{
|
|
SQuestInstance()
|
|
{
|
|
dwIndex = 0;
|
|
iClockValue = 0;
|
|
iCounterValue = 0;
|
|
iStartTime = 0;
|
|
}
|
|
|
|
DWORD dwIndex;
|
|
|
|
std::string strIconFileName;
|
|
std::string strTitle;
|
|
|
|
std::string strClockName;
|
|
std::string strCounterName;
|
|
|
|
int iClockValue;
|
|
int iCounterValue;
|
|
|
|
int iStartTime;
|
|
};
|
|
typedef std::vector<SQuestInstance> TQuestInstanceContainer;
|
|
|
|
public:
|
|
CPythonQuest();
|
|
virtual ~CPythonQuest();
|
|
|
|
void Clear();
|
|
|
|
void RegisterQuestInstance(const SQuestInstance & c_rQuestInstance);
|
|
void DeleteQuestInstance(DWORD dwIndex);
|
|
|
|
bool IsQuest(DWORD dwIndex);
|
|
void MakeQuest(DWORD dwIndex);
|
|
|
|
void SetQuestTitle(DWORD dwIndex, const char * c_szTitle);
|
|
void SetQuestClockName(DWORD dwIndex, const char * c_szClockName);
|
|
void SetQuestCounterName(DWORD dwIndex, const char * c_szCounterName);
|
|
void SetQuestClockValue(DWORD dwIndex, int iClockValue);
|
|
void SetQuestCounterValue(DWORD dwIndex, int iCounterValue);
|
|
void SetQuestIconFileName(DWORD dwIndex, const char * c_szIconFileName);
|
|
|
|
int GetQuestCount();
|
|
bool GetQuestInstancePtr(DWORD dwArrayIndex, SQuestInstance ** ppQuestInstance);
|
|
|
|
protected:
|
|
void __Initialize();
|
|
bool __GetQuestInstancePtr(DWORD dwQuestIndex, SQuestInstance ** ppQuestInstance);
|
|
|
|
protected:
|
|
TQuestInstanceContainer m_QuestInstanceContainer;
|
|
}; |