kitchen: README + MISSIONS/engine-c keep-drop notes
This commit is contained in:
parent
1d351918da
commit
575d7d29b8
130 changed files with 9817 additions and 1 deletions
25
openkknd2-am-coder/include/ok_buildings.h
Normal file
25
openkknd2-am-coder/include/ok_buildings.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef OK_BUILDINGS_H
|
||||
#define OK_BUILDINGS_H
|
||||
#include "ok_types.h"
|
||||
|
||||
// Building types
|
||||
enum OkBuildingKind {
|
||||
OK_BUILDING_HQ = 0,
|
||||
OK_BUILDING_BARRACKS = 1,
|
||||
OK_BUILDING_MAX
|
||||
};
|
||||
|
||||
// Building structure
|
||||
typedef struct {
|
||||
int x, y;
|
||||
OkBuildingKind kind;
|
||||
OkFaction faction;
|
||||
int resource_cost;
|
||||
bool built;
|
||||
} OkBuilding;
|
||||
|
||||
// Function declarations
|
||||
void ok_buildings_init(OkWorld *w);
|
||||
void ok_buildings_place(OkWorld *w, int x, int y, OkBuildingKind kind, OkFaction faction);
|
||||
void ok_buildings_update(OkWorld *w);
|
||||
#endif // OK_BUILDINGS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue