76 closure headers (EterBase, EterLocale, EterPack, EterLib, GameLib, MilesLib, EffectLib, SphereLib, EterImageLib) copied by the new port_copy.py (CP949->UTF-8, LF, include-path case only); platform-class headers go to the mirror path too, as the interface platform/ implements. Six manual `// PORT:` edits (Random, Singleton, Pool, Stl, Utils, FlyTarget). - common/D3D8Types.h: D3D8 value types with SDK values/layout, opaque COM interfaces - common/shim/sdk (d3d8/d3dx8/mss) on every platform, common/shim/win32 off Windows - Win32Types/Win32Crt: HRESULT, GUID, LARGE_INTEGER, LOGFONT/TEXTMETRIC, _atoi64, CRITICAL_SECTION on std::recursive_mutex - header gate prepends each library's StdAfx.h (40250's precompiled header) port_gate: macOS, Android, iOS, Windows (mingw) PASS; Linux BLOCKED (no toolchain). ScriptLib/EterPythonLib/UserInterface wait for 2P (their StdAfx includes Python). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include "AttributeData.h"
|
|
#include "Pool.h"
|
|
|
|
class CAttributeInstance
|
|
{
|
|
public:
|
|
CAttributeInstance();
|
|
virtual ~CAttributeInstance();
|
|
|
|
void Clear();
|
|
BOOL IsEmpty() const;
|
|
|
|
const char * GetDataFileName() const;
|
|
|
|
// NOTE : Object 전용
|
|
void SetObjectPointer(CAttributeData * pAttributeData);
|
|
void RefreshObject(const D3DXMATRIX & c_rmatGlobal);
|
|
CAttributeData * GetObjectPointer() const;
|
|
|
|
bool Picking(const D3DXVECTOR3 & v, const D3DXVECTOR3 & dir, float & out_x, float & out_y);
|
|
|
|
BOOL IsInHeight(float fx, float fy);
|
|
BOOL GetHeight(float fx, float fy, float * pfHeight);
|
|
|
|
BOOL IsHeightData() const;
|
|
|
|
protected:
|
|
void SetGlobalMatrix(const D3DXMATRIX & c_rmatGlobal);
|
|
void SetGlobalPosition(const D3DXVECTOR3 & c_rv3Position);
|
|
|
|
protected:
|
|
float m_fCollisionRadius;
|
|
float m_fHeightRadius;
|
|
|
|
D3DXMATRIX m_matGlobal;
|
|
|
|
std::vector< std::vector<D3DXVECTOR3> > m_v3HeightDataVector;
|
|
|
|
CAttributeData::TRef m_roAttributeData;
|
|
|
|
/*
|
|
BOOL m_isHeightCached;
|
|
struct SHeightCacheData
|
|
{
|
|
float fxMin;
|
|
float fyMin;
|
|
float fxMax;
|
|
float fyMax;
|
|
DWORD dwxStep;
|
|
DWORD dwyStep;
|
|
std::vector<float> kVec_fHeight;
|
|
} m_kHeightCacheData;
|
|
*/
|
|
|
|
public:
|
|
static void CreateSystem(UINT uCapacity);
|
|
static void DestroySystem();
|
|
|
|
static CAttributeInstance* New();
|
|
static void Delete(CAttributeInstance* pkInst);
|
|
|
|
static CDynamicPool<CAttributeInstance> ms_kPool;
|
|
};
|