Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
// InstanceObjectManager.h: interface for the CInstanceObjectManager class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_INSTANCEOBJECTMANAGER_H__6B3FA12E_A24E_49BC_8887_79BD0D6F0C70__INCLUDED_)
|
|
#define AFX_INSTANCEOBJECTMANAGER_H__6B3FA12E_A24E_49BC_8887_79BD0D6F0C70__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "3DMath.h"
|
|
#include "List.h"
|
|
#include "MeshObject.h"
|
|
|
|
class CInstanceObjectManager
|
|
{
|
|
class InstanceObjectNode
|
|
{
|
|
public:
|
|
CMeshObject *m_pMeshObject;
|
|
vector3 m_vecPosition;
|
|
POINT m_ptMousePick;
|
|
char m_strMeshName[256];
|
|
int m_ID;
|
|
color m_Color;
|
|
};
|
|
DWORD m_ObjectRenderStateBlock;
|
|
public:
|
|
void SetAllObjectColor(color Color);
|
|
void SetInstanceObjectColor(int ID,color Color);
|
|
int MouseOnCheckInstanceObject(int px,int py);
|
|
void Create(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
void Render(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
long m_TotalInstanceObjectID;
|
|
List<InstanceObjectNode> m_InstanceObjectList;
|
|
void DeleteInstanceObject(int InstanceObjectID);
|
|
int AddInstanceObject(char *strObjectName,vector3 vecPos);
|
|
CInstanceObjectManager();
|
|
virtual ~CInstanceObjectManager();
|
|
|
|
};
|
|
|
|
#endif // !defined(AFX_INSTANCEOBJECTMANAGER_H__6B3FA12E_A24E_49BC_8887_79BD0D6F0C70__INCLUDED_)
|