This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loground/base.h
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

51 lines
799 B
C

#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <msgpack.h>
#include "core/loentity/entity.h"
#include "core/loentity/ground.h"
#include "core/loshader/ground.h"
#include "./type.h"
typedef struct {
loentity_ground_t super;
bool used;
loshader_ground_drawer_t* drawer;
struct {
loground_type_t type;
} param;
struct {
loshader_ground_drawer_instance_t instance;
} cache;
} loground_base_t;
void
loground_base_initialize(
loground_base_t* base,
loshader_ground_drawer_t* drawer
);
void
loground_base_reinitialize(
loground_base_t* base,
loentity_id_t id
);
void
loground_base_deinitialize(
loground_base_t* base
);
bool
loground_base_unpack(
loground_base_t* base,
const msgpack_object *obj
);