mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-10 16:28:21 +03:00
Replace debug_print with to_json
to_json and cJSON_Print are now used when displaying debug information. The main reason for this change it to support sending objects over DAP.
This commit is contained in:
+4
-1
@@ -17,12 +17,15 @@
|
||||
#ifndef SYSTEM4_PLUGIN_H
|
||||
#define SYSTEM4_PLUGIN_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct cJSON cJSON;
|
||||
struct sact_sprite;
|
||||
|
||||
struct draw_plugin {
|
||||
const char *name;
|
||||
void (*update)(struct sact_sprite *);
|
||||
void (*debug_print)(struct sact_sprite *, int indent);
|
||||
cJSON *(*to_json)(struct sact_sprite *, bool);
|
||||
};
|
||||
|
||||
#endif /* SYSTEM4_PLUGIN_H */
|
||||
|
||||
Reference in New Issue
Block a user