2026-08-03 17:02:20 +10:00
|
|
|
#ifndef __GRAVITY__FUNCTION_H
|
|
|
|
|
#define __GRAVITY__FUNCTION_H
|
2026-08-02 15:52:44 +10:00
|
|
|
|
2026-08-03 17:02:20 +10:00
|
|
|
#include "type.h"
|
|
|
|
|
#include "block.h"
|
|
|
|
|
#include "list.h"
|
2026-08-03 21:01:34 +10:00
|
|
|
#include "strb.h"
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
#include <string.h>
|
2026-08-02 15:52:44 +10:00
|
|
|
|
2026-08-03 17:02:20 +10:00
|
|
|
UseList(GravityBlock);
|
|
|
|
|
|
|
|
|
|
typedef struct GravityOpaqueFunction* GravityFunction;
|
|
|
|
|
|
|
|
|
|
struct GravityOpaqueFunction {
|
|
|
|
|
GravityFunctionType functionType;
|
|
|
|
|
List(GravityBlock) blocks;
|
2026-08-03 21:01:34 +10:00
|
|
|
const char* name;
|
2026-08-03 17:02:20 +10:00
|
|
|
};
|
2026-08-02 15:52:44 +10:00
|
|
|
|
2026-08-03 21:01:34 +10:00
|
|
|
GravityBlock gravityStartBlock(const char* name, GravityFunction function, uint16_t numBlockParams, ...);
|
|
|
|
|
char* gravityFunctionToCStr(GravityFunction function);
|
|
|
|
|
|
2026-08-02 15:52:44 +10:00
|
|
|
#endif
|