There is a tutorial for adding light.
First of all, it's important to know that what you place in the editor will not automatically be loaded into your game (only terrain will). This is because you want to have control over how you store it.
So, to load the placed lights into your game, first make a container that will say of which type the lights will be:
Code:
Game.ObjMap<Game.ObjLightCone > ConeLights;
Game.ObjMap<Game.ObjLightPoint> PointLights;
I made 2 containers here, 1 for cone lights, one for point lights. You can place those somewhere at the top in Main
Next, these containers do nothing without us telling the world manager to fill them with all objects that have the proper Object_Class in the editor. So, in Init():
Code:
Game.World.activeRange(D.viewRange())
.setObjType(PointLights, OBJ_POINT_LIGHT)
.setObjType(ConeLights, OBJ_CONE_LIGHT)
Game.World.New(UID(2162960215, 1166629077, 880822961, 2503136980));
And that's it, the world manager will now put all objects of these types in the proper containers. Equally important: The world manager will now also update and draw these objects automatically.