Added editor code
This commit is contained in:
@@ -17,6 +17,7 @@ build :: (main_path: string, game_name: string) {
|
|||||||
|
|
||||||
new_path: [..] string;
|
new_path: [..] string;
|
||||||
array_add(*new_path, ..opts.import_path);
|
array_add(*new_path, ..opts.import_path);
|
||||||
|
array_add(*new_path, "../../modules");
|
||||||
array_add(*new_path, "modules");
|
array_add(*new_path, "modules");
|
||||||
opts.import_path = new_path;
|
opts.import_path = new_path;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
#load "core/entity.jai";
|
#load "core/entity.jai";
|
||||||
#load "core/scene.jai";
|
#load "core/scene.jai";
|
||||||
|
|
||||||
|
#if EDITOR {
|
||||||
|
//#load "../editor/scene_editor.jai";
|
||||||
|
//#load "../ui/new_ui/new_ui.jai";
|
||||||
|
#load "../editor/editor.jai";
|
||||||
|
|
||||||
|
editor: Editor;
|
||||||
|
}
|
||||||
|
|
||||||
window: *Window;
|
window: *Window;
|
||||||
renderer: *Renderer;
|
renderer: *Renderer;
|
||||||
input : Input_State;
|
input : Input_State;
|
||||||
|
|||||||
Reference in New Issue
Block a user