2017-12-20 19:53:09 +01:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2018-01-04 18:14:31 +01:00
|
|
|
* Copyright (c) 2011-2018, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2018, Andrei Alexeyev <akari@alienslab.net>.
|
2017-12-20 19:53:09 +01:00
|
|
|
*/
|
2017-12-13 20:05:12 +01:00
|
|
|
|
|
|
|
#pragma once
|
2017-12-20 19:57:29 +01:00
|
|
|
#include "taisei.h"
|
2017-12-13 20:05:12 +01:00
|
|
|
|
|
|
|
#include "objectpool.h"
|
|
|
|
|
|
|
|
typedef struct StageObjectPools {
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
ObjectPool *projectiles; // includes particles as well
|
|
|
|
ObjectPool *items;
|
|
|
|
ObjectPool *enemies;
|
|
|
|
ObjectPool *lasers;
|
|
|
|
};
|
|
|
|
|
|
|
|
ObjectPool *first;
|
|
|
|
};
|
|
|
|
} StageObjectPools;
|
|
|
|
|
|
|
|
extern StageObjectPools stage_object_pools;
|
|
|
|
|
|
|
|
void stage_objpools_alloc(void);
|
|
|
|
void stage_objpools_free(void);
|