vartypes.h

来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 49 行

H
49
字号
/*
creg - Code compoment registration system
Copyright 2005 Jelmer Cnossen 

Implementations of IType for specific types
*/

#ifndef CR_VARIABLE_TYPES_H
#define CR_VARIABLE_TYPES_H

#include "creg.h"

namespace creg
{
	class BasicType : public IType
	{
	public:
		BasicType(BasicTypeID ID) : id(ID) {}
		~BasicType() {}

		void Serialize (ISerializer *s, void *instance);
		std::string GetName();

		BasicTypeID id;
	};

	class ObjectInstanceType : public IType
	{
	public:
		ObjectInstanceType(Class* objc) : objectClass(objc) {}
		~ObjectInstanceType() {}
		void Serialize (ISerializer *s, void *instance);
		std::string GetName();

		Class* objectClass;
	};
	
	class StringType : public DynamicArrayType<std::string>
	{
	public:
		StringType(IType *charType);
		std::string GetName();
	};

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?