-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move ecs tools & gizmo to extensions
- Loading branch information
Showing
12 changed files
with
764 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
522 changes: 323 additions & 199 deletions
522
sandbox/pl_ecs_tools.c → extensions/pl_ecs_tools_ext.c
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,50 @@ | ||
|
||
/* | ||
pl_ecs_tools.h | ||
pl_ecs_tools_ext.h | ||
*/ | ||
|
||
/* | ||
Index of this file: | ||
// [SECTION] header mess | ||
// [SECTION] APIs | ||
// [SECTION] includes | ||
// [SECTION] forward declarations | ||
// [SECTION] public api | ||
// [SECTION] public api structs | ||
*/ | ||
|
||
//----------------------------------------------------------------------------- | ||
// [SECTION] header mess | ||
//----------------------------------------------------------------------------- | ||
|
||
#ifndef PL_ECS_TOOLS_H | ||
#define PL_ECS_TOOLS_H | ||
#ifndef PL_ECS_TOOLS_EXT_H | ||
#define PL_ECS_TOOLS_EXT_H | ||
|
||
//----------------------------------------------------------------------------- | ||
// [SECTION] APIs | ||
//----------------------------------------------------------------------------- | ||
|
||
#define plEcsToolsI_version (plVersion){0, 1, 0} | ||
|
||
//----------------------------------------------------------------------------- | ||
// [SECTION] includes | ||
//----------------------------------------------------------------------------- | ||
|
||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
//----------------------------------------------------------------------------- | ||
// [SECTION] forward declarations | ||
//----------------------------------------------------------------------------- | ||
|
||
// external | ||
typedef struct _plApiRegistryI plApiRegistryI; // pl.h | ||
typedef struct _plComponentLibrary plComponentLibrary; // pl_ecs_ext.h | ||
typedef union _plEntity plEntity; | ||
typedef union _plEntity plEntity; // pl_ecs_ext.h | ||
|
||
//----------------------------------------------------------------------------- | ||
// [SECTION] public api | ||
// [SECTION] public api structs | ||
//----------------------------------------------------------------------------- | ||
|
||
bool pl_show_ecs_window(plEntity* ptSelectedEntity, uint32_t uSceneHandle, bool*); | ||
typedef struct _plEcsToolsI | ||
{ | ||
bool (*show_ecs_window)(plEntity* ptSelectedEntity, uint32_t uSceneHandle, bool*); | ||
} plEcsToolsI; | ||
|
||
#endif // PL_ECS_TOOLS_H | ||
#endif // PL_ECS_TOOLS_EXT_H |
Oops, something went wrong.