layout: restructure into src/ tests/ android/ scripts/ tools/
- 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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
70710477cf
commit
a46093104c
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
class CPythonSafeBox : public CSingleton<CPythonSafeBox>
|
||||
{
|
||||
public:
|
||||
enum
|
||||
{
|
||||
SAFEBOX_SLOT_X_COUNT = 5,
|
||||
SAFEBOX_SLOT_Y_COUNT = 9,
|
||||
SAFEBOX_PAGE_SIZE = SAFEBOX_SLOT_X_COUNT * SAFEBOX_SLOT_Y_COUNT,
|
||||
};
|
||||
typedef std::vector<TItemData> TItemInstanceVector;
|
||||
|
||||
public:
|
||||
CPythonSafeBox();
|
||||
virtual ~CPythonSafeBox();
|
||||
|
||||
void OpenSafeBox(int iSize);
|
||||
void SetItemData(DWORD dwSlotIndex, const TItemData & rItemData);
|
||||
void DelItemData(DWORD dwSlotIndex);
|
||||
|
||||
void SetMoney(DWORD dwMoney);
|
||||
DWORD GetMoney();
|
||||
|
||||
BOOL GetSlotItemID(DWORD dwSlotIndex, DWORD* pdwItemID);
|
||||
|
||||
int GetCurrentSafeBoxSize();
|
||||
BOOL GetItemDataPtr(DWORD dwSlotIndex, TItemData ** ppInstance);
|
||||
|
||||
// MALL
|
||||
void OpenMall(int iSize);
|
||||
void SetMallItemData(DWORD dwSlotIndex, const TItemData & rItemData);
|
||||
void DelMallItemData(DWORD dwSlotIndex);
|
||||
BOOL GetMallItemDataPtr(DWORD dwSlotIndex, TItemData ** ppInstance);
|
||||
BOOL GetSlotMallItemID(DWORD dwSlotIndex, DWORD * pdwItemID);
|
||||
DWORD GetMallSize();
|
||||
|
||||
protected:
|
||||
TItemInstanceVector m_ItemInstanceVector;
|
||||
TItemInstanceVector m_MallItemInstanceVector;
|
||||
DWORD m_dwMoney;
|
||||
};
|
||||
Reference in New Issue
Block a user