first commit
This commit is contained in:
44
include/platform/reflection/c_refl.h
Normal file
44
include/platform/reflection/c_refl.h
Normal file
@ -0,0 +1,44 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2011 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __NREFL_OBJECT__
|
||||
#define __NREFL_OBJECT__
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
#include "reflection/nenum_string.h"
|
||||
|
||||
|
||||
namespace GS {
|
||||
namespace Reflection {
|
||||
|
||||
struct Property
|
||||
{
|
||||
enum PropType
|
||||
{
|
||||
InvalidProp,
|
||||
BoolProp,
|
||||
CharProp,
|
||||
ShortProp,
|
||||
IntProp,
|
||||
FloatProp,
|
||||
StringProp,
|
||||
EnumProp
|
||||
};
|
||||
|
||||
PropType type;
|
||||
|
||||
const char *name;
|
||||
size_t offset_of;
|
||||
|
||||
Enum::Dict *enum_dict;
|
||||
};
|
||||
|
||||
} // Reflection
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __NREFL_OBJECT__
|
||||
Reference in New Issue
Block a user