2014-01-24 09:00:59 +01:00
|
|
|
#ifndef OBJECT_DEFINES_H
|
|
|
|
#define OBJECT_DEFINES_H
|
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
enum ObjectType
|
|
|
|
{
|
2014-01-24 10:01:58 +01:00
|
|
|
ObjectType_Level,
|
2014-01-24 09:00:59 +01:00
|
|
|
ObjectType_Static,
|
|
|
|
ObjectType_Dynamic,
|
|
|
|
|
|
|
|
|
|
|
|
ObjectType_NUM_OF_TYPES,
|
|
|
|
|
2014-01-24 10:01:58 +01:00
|
|
|
ObjectType_Unknown = -1,
|
2014-01-24 09:00:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ObjectTypeHeader
|
|
|
|
{
|
|
|
|
ObjectType typeID;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ObjectHeader : public ObjectTypeHeader
|
|
|
|
{
|
|
|
|
//Model,
|
2014-01-27 10:15:39 +01:00
|
|
|
int ModelID;
|
2014-01-24 09:00:59 +01:00
|
|
|
//Texture
|
2014-01-27 10:15:39 +01:00
|
|
|
int TextureID;
|
2014-01-24 09:00:59 +01:00
|
|
|
//Position
|
|
|
|
float position[3];
|
|
|
|
//Rotation
|
|
|
|
float rotation[3];
|
|
|
|
//Scale
|
|
|
|
float scale[3];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|