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/lobullet/pool.h

43 lines
847 B
C
Raw Normal View History

#pragma once
#include <stddef.h>
#include <msgpack.h>
#include "core/locommon/counter.h"
#include "core/locommon/ticker.h"
#include "core/loentity/store.h"
#include "core/loresource/set.h"
#include "core/loshader/set.h"
#include "./base.h"
struct lobullet_pool_t;
typedef struct lobullet_pool_t lobullet_pool_t;
lobullet_pool_t* /* OWNERSHIP */
lobullet_pool_new(
loresource_set_t* res,
loshader_set_t* shaders,
locommon_counter_t* idgen,
const locommon_ticker_t* ticker,
loentity_store_t* entities,
size_t length
);
void
lobullet_pool_delete(
lobullet_pool_t* pool /* OWNERSHIP */
);
lobullet_base_t*
lobullet_pool_create(
lobullet_pool_t* pool
);
lobullet_base_t*
lobullet_pool_unpack_item(
lobullet_pool_t* pool,
const msgpack_object* obj
);