Esenthel
Administrator
|
RE: [Code Editor] Bug?
are you using latest SDK?
I've just tried code:
Code:
Game.ObjMemx<Game.Item> Items;
enum OBJ_TYPE
{
OBJ_ITEM,
}
void main()
{
Game::World.init()
.setObjType(Items, OBJ_ITEM)
.New("World/barrels.world")
.update(Cam.at);
}
and it works ok
|
|
08-11-2011 12:27 PM |
|
Dandruff
Member
|
RE: [Code Editor] Bug?
Oo, i tried replacing
Code:
#include "../../../data/enum/_enums.h"
with
Code:
enum OBJ_TYPE
{
OBJ_ITEM,
}
and it compiles without errors
(This post was last modified: 08-11-2011 09:11 PM by Dandruff.)
|
|
08-11-2011 09:09 PM |
|
Esenthel
Administrator
|
RE: [Code Editor] Bug?
you can't use #include in CE, you must include headers in Project Settings (right click on App)
|
|
08-11-2011 09:16 PM |
|
Dandruff
Member
|
RE: [Code Editor] Bug?
Oh i see, thanks
|
|
08-11-2011 09:32 PM |
|
Driklyn
Member
|
RE: [Code Editor] Bug?
You don't necessarily need to manually load the enum file, however. You could just do this:
Code:
Game::World.setObjType(Items, Game::ObjType("OBJ_ITEM"));
The obj_type.enum file is automatically loaded internally when you call Game::World.init().
----------
On a seriously way off-topic note, this is my first post as a Licensed Developer
|
|
08-11-2011 10:34 PM |
|