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>
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
// ObjectContainer.h: interface for the CObjectContainer class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_OBJECTCONTAINER_H__0BA964B1_EE00_4AC8_AE46_07623AB11A0C__INCLUDED_)
|
|
#define AFX_OBJECTCONTAINER_H__0BA964B1_EE00_4AC8_AE46_07623AB11A0C__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "List.h"
|
|
#include "BaseDataDefine.h"
|
|
#include "MeshObject.h"
|
|
|
|
|
|
class CObjectContainer
|
|
{
|
|
class ObjectNode
|
|
{
|
|
public:
|
|
long m_nUsed;
|
|
char m_strObjectName[MAX_NAMEBUFFER];
|
|
CMeshObject *m_pObject;
|
|
bool m_isAlpha;
|
|
bool m_isLight;
|
|
ObjectNode(CMeshObject *pObject,char *strObjectName,bool isAlpha,bool isLight)
|
|
{
|
|
strcpy(m_strObjectName,strObjectName);
|
|
m_pObject=pObject;
|
|
m_isAlpha=isAlpha;
|
|
m_isLight=isLight;
|
|
m_nUsed=1;
|
|
}
|
|
};
|
|
List<ObjectNode*> m_ObjectContainer;
|
|
public:
|
|
void DeleteAllObject();
|
|
void DeleteObject(char *strObjectName,bool isAlpha,bool isLight);
|
|
void Load(char *strObjectName,bool isAlpha,bool isLight);
|
|
CMeshObject* GetObject(char *strObjectName,bool isAlpha,bool isLight);
|
|
CObjectContainer();
|
|
virtual ~CObjectContainer();
|
|
|
|
};
|
|
|
|
#endif // !defined(AFX_OBJECTCONTAINER_H__0BA964B1_EE00_4AC8_AE46_07623AB11A0C__INCLUDED_)
|