53 lines
750 B
C
53 lines
750 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <cstdint>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace XCEngine {
|
||
|
|
namespace Editor {
|
||
|
|
|
||
|
|
using GameObjectID = uint64_t;
|
||
|
|
|
||
|
|
struct SelectionChangedEvent {
|
||
|
|
std::vector<GameObjectID> selectedObjects;
|
||
|
|
GameObjectID primarySelection;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct EntityCreatedEvent {
|
||
|
|
GameObjectID entityId;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct EntityDeletedEvent {
|
||
|
|
GameObjectID entityId;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct EntityChangedEvent {
|
||
|
|
GameObjectID entityId;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct EntityParentChangedEvent {
|
||
|
|
GameObjectID entityId;
|
||
|
|
GameObjectID oldParentId;
|
||
|
|
GameObjectID newParentId;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct SceneChangedEvent {
|
||
|
|
};
|
||
|
|
|
||
|
|
struct PlayModeStartedEvent {
|
||
|
|
};
|
||
|
|
|
||
|
|
struct PlayModeStoppedEvent {
|
||
|
|
};
|
||
|
|
|
||
|
|
struct PlayModePausedEvent {
|
||
|
|
};
|
||
|
|
|
||
|
|
struct EditorModeChangedEvent {
|
||
|
|
int oldMode;
|
||
|
|
int newMode;
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|