Added a Debug Statment
This commit is contained in:
parent
e503dd47f3
commit
958da58cc7
20
imgui.ini
20
imgui.ini
@ -1,6 +1,6 @@
|
|||||||
[Window][DockSpace]
|
[Window][DockSpace]
|
||||||
Pos=0,0
|
Pos=0,0
|
||||||
Size=1280,720
|
Size=1920,1177
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
|
|
||||||
[Window][Debug##Default]
|
[Window][Debug##Default]
|
||||||
@ -9,8 +9,8 @@ Size=400,400
|
|||||||
Collapsed=0
|
Collapsed=0
|
||||||
|
|
||||||
[Window][Inspector]
|
[Window][Inspector]
|
||||||
Pos=903,27
|
Pos=1543,27
|
||||||
Size=369,685
|
Size=369,1142
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000002,0
|
DockId=0x00000002,0
|
||||||
|
|
||||||
@ -21,14 +21,14 @@ Collapsed=0
|
|||||||
DockId=0x00000003,0
|
DockId=0x00000003,0
|
||||||
|
|
||||||
[Window][Performance]
|
[Window][Performance]
|
||||||
Pos=8,477
|
Pos=8,777
|
||||||
Size=364,235
|
Size=364,392
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000006,0
|
DockId=0x00000006,0
|
||||||
|
|
||||||
[Window][Logger]
|
[Window][Logger]
|
||||||
Pos=374,342
|
Pos=374,799
|
||||||
Size=527,370
|
Size=1167,370
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000004,0
|
DockId=0x00000004,0
|
||||||
|
|
||||||
@ -40,18 +40,18 @@ DockId=0x00000007,0
|
|||||||
|
|
||||||
[Window][Scene Window]
|
[Window][Scene Window]
|
||||||
Pos=8,27
|
Pos=8,27
|
||||||
Size=364,448
|
Size=364,748
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000005,0
|
DockId=0x00000005,0
|
||||||
|
|
||||||
[Window][Editor]
|
[Window][Editor]
|
||||||
Pos=374,27
|
Pos=374,27
|
||||||
Size=527,313
|
Size=1167,770
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000003,0
|
DockId=0x00000003,0
|
||||||
|
|
||||||
[Docking][Data]
|
[Docking][Data]
|
||||||
DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,27 Size=1264,685 Split=X Selected=0xF7365A5A
|
DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,27 Size=1904,1142 Split=X Selected=0xF7365A5A
|
||||||
DockNode ID=0x00000009 Parent=0x14621557 SizeRef=364,1142 Split=Y Selected=0x3DC5AC3F
|
DockNode ID=0x00000009 Parent=0x14621557 SizeRef=364,1142 Split=Y Selected=0x3DC5AC3F
|
||||||
DockNode ID=0x00000005 Parent=0x00000009 SizeRef=364,748 HiddenTabBar=1 Selected=0x3DC5AC3F
|
DockNode ID=0x00000005 Parent=0x00000009 SizeRef=364,748 HiddenTabBar=1 Selected=0x3DC5AC3F
|
||||||
DockNode ID=0x00000006 Parent=0x00000009 SizeRef=364,392 HiddenTabBar=1 Selected=0x726D8899
|
DockNode ID=0x00000006 Parent=0x00000009 SizeRef=364,392 HiddenTabBar=1 Selected=0x726D8899
|
||||||
|
@ -2,123 +2,123 @@ Entities:
|
|||||||
- ID: 0
|
- ID: 0
|
||||||
Name: Car
|
Name: Car
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [0, 2.79999995, -12.6000004]
|
|
||||||
Rotation: [149.699997, -137.899994, -39.2999992]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 2
|
vao: 2
|
||||||
indexCount: 15810
|
indexCount: 15810
|
||||||
textureID: 1
|
textureID: 1
|
||||||
MeshPath: assets/models/LowPolyFiatUNO.obj
|
MeshPath: assets/models/LowPolyFiatUNO.obj
|
||||||
|
Transform:
|
||||||
|
Position: [0, 2.79999995, -12.6000004]
|
||||||
|
Rotation: [149.699997, -137.899994, -39.2999992]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 1
|
- ID: 1
|
||||||
Name: Plant
|
Name: Plant
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [-8.60000038, 6.5, -15.6000004]
|
|
||||||
Rotation: [-180, 0, 0]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 5
|
vao: 5
|
||||||
indexCount: 589632
|
indexCount: 589632
|
||||||
textureID: 7
|
textureID: 7
|
||||||
MeshPath: assets/models/OutSidePlant.obj
|
MeshPath: assets/models/OutSidePlant.obj
|
||||||
|
Transform:
|
||||||
|
Position: [-8.60000038, 6.5, -15.6000004]
|
||||||
|
Rotation: [-180, 0, 0]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 2
|
- ID: 2
|
||||||
Name: Cube Yay 2
|
Name: Cube Yay 2
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [7.80000019, -8.10000038, -20.6000004]
|
|
||||||
Rotation: [-86.3000031, 0, -66]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 3
|
textureID: 3
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
|
Transform:
|
||||||
|
Position: [7.80000019, -8.10000038, -20.6000004]
|
||||||
|
Rotation: [-86.3000031, 0, -66]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 3
|
- ID: 3
|
||||||
Name: Cube Yay 3
|
Name: Cube Yay 3
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [-1.20000005, -3.4000001, -17.7000008]
|
|
||||||
Rotation: [-23.5, 15.8999996, -59.9000015]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 4
|
textureID: 4
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
|
Transform:
|
||||||
|
Position: [-1.20000005, -3.4000001, -17.7000008]
|
||||||
|
Rotation: [-23.5, 15.8999996, -59.9000015]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 4
|
- ID: 4
|
||||||
Name: Cube Yay 4
|
Name: Cube Yay 4
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [8.10000038, 0.800000012, -12]
|
|
||||||
Rotation: [-17.2999992, -16.1000004, -19.2999992]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 5
|
textureID: 5
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
|
Transform:
|
||||||
|
Position: [8.10000038, 0.800000012, -12]
|
||||||
|
Rotation: [-17.2999992, -16.1000004, -19.2999992]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 5
|
- ID: 5
|
||||||
Name: Sky
|
Name: Sky
|
||||||
Components:
|
Components:
|
||||||
|
Transform:
|
||||||
|
Position: [0, 0, 43.2000008]
|
||||||
|
Rotation: [0, 0, 0]
|
||||||
|
Scale: [100, 100, 100]
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 6
|
textureID: 6
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
Transform:
|
|
||||||
Position: [0, 0, 43.2000008]
|
|
||||||
Rotation: [0, 0, 0]
|
|
||||||
Scale: [100, 100, 100]
|
|
||||||
- ID: 6
|
- ID: 6
|
||||||
Name: Cube Yay 6
|
Name: Cube Yay 6
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [-6.5, -6, -18]
|
|
||||||
Rotation: [15.8000002, -18.2000008, -11.1000004]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 3
|
textureID: 3
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
|
Transform:
|
||||||
|
Position: [-6.5, -6, -18]
|
||||||
|
Rotation: [15.8000002, -18.2000008, -11.1000004]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 7
|
- ID: 7
|
||||||
Name: Cube Yay 7
|
Name: Cube Yay 7
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [6.5, 1.79999995, -23.8999996]
|
|
||||||
Rotation: [-16.1000004, -15.8999996, -35]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 4
|
textureID: 4
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
|
Transform:
|
||||||
|
Position: [6.5, 1.79999995, -23.8999996]
|
||||||
|
Rotation: [-16.1000004, -15.8999996, -35]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 8
|
- ID: 8
|
||||||
Name: Cube Yay 8
|
Name: Cube Yay 8
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [-7.80000019, 0.200000003, -29.7999992]
|
|
||||||
Rotation: [22.2999992, -32.7999992, 0]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 1
|
textureID: 1
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
|
Transform:
|
||||||
|
Position: [-7.80000019, 0.200000003, -29.7999992]
|
||||||
|
Rotation: [22.2999992, -32.7999992, 0]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 9
|
- ID: 9
|
||||||
Name: Cube Yay 9
|
Name: Cube Yay 9
|
||||||
Components:
|
Components:
|
||||||
Transform:
|
|
||||||
Position: [5.5, -2.9000001, -19.5]
|
|
||||||
Rotation: [-41.4000015, -22.6000004, -52.2999992]
|
|
||||||
Scale: [1, 1, 1]
|
|
||||||
Mesh:
|
Mesh:
|
||||||
vao: 6
|
vao: 6
|
||||||
indexCount: 36
|
indexCount: 36
|
||||||
textureID: 2
|
textureID: 2
|
||||||
MeshPath: assets/models/DefaultMesh.obj
|
MeshPath: assets/models/DefaultMesh.obj
|
||||||
|
Transform:
|
||||||
|
Position: [5.5, -2.9000001, -19.5]
|
||||||
|
Rotation: [-41.4000015, -22.6000004, -52.2999992]
|
||||||
|
Scale: [1, 1, 1]
|
||||||
- ID: 10
|
- ID: 10
|
||||||
Name: Script
|
Name: Script
|
||||||
Components:
|
Components:
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#include "ScriptComponent.h"
|
#include "ScriptComponent.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include "gcml.h"
|
||||||
|
|
||||||
// External pointer to LoggerWindow (Assuming it's defined globally)
|
// External pointer to LoggerWindow (Assuming it's defined globally)
|
||||||
extern LoggerWindow* g_LoggerWindow;
|
extern LoggerWindow* g_LoggerWindow;
|
||||||
|
|
||||||
@ -47,7 +49,10 @@ void ScriptComponent::Deserialize(const YAML::Node& node)
|
|||||||
if (node["ScriptPath"])
|
if (node["ScriptPath"])
|
||||||
{
|
{
|
||||||
ScriptPath = node["ScriptPath"].as<std::string>();
|
ScriptPath = node["ScriptPath"].as<std::string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUG_PRINT("Script Path: %s", ScriptPath.c_str());
|
||||||
|
|
||||||
Initialize();
|
Initialize();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user