2023-09-17 20:56:51 +00:00
|
|
|
#pragma once
|
2023-09-18 17:50:50 +00:00
|
|
|
#define API IMPORT
|
|
|
|
#include "v4k.h"
|
2023-09-17 20:56:51 +00:00
|
|
|
|
|
|
|
struct asset_t;
|
|
|
|
|
|
|
|
typedef int (*ed_proc)(struct asset_t *asset);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
ed_proc init;
|
|
|
|
ed_proc tick;
|
|
|
|
ed_proc quit;
|
|
|
|
char* (*ext)();
|
|
|
|
} editor_vtable_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *name;
|
|
|
|
editor_vtable_t f;
|
|
|
|
} editor_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *name;
|
|
|
|
editor_t *ed;
|
|
|
|
|
|
|
|
int slot; //<< internal, used by plugin
|
2023-09-18 10:00:16 +00:00
|
|
|
bool opened;
|
|
|
|
uint64_t last_modified;
|
2023-09-17 20:56:51 +00:00
|
|
|
} asset_t;
|