mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2026-05-26 07:59:58 +00:00
First push
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 3/3/20.
|
||||
//
|
||||
|
||||
#ifndef _TEAMS_COMPONENT_C_
|
||||
#define _TEAMS_COMPONENT_H_
|
||||
|
||||
#include "component.h"
|
||||
|
||||
typedef enum display_type
|
||||
{
|
||||
HAPPINESS_DISPLAY,
|
||||
STUPIDITY_DISPLAY,
|
||||
SELECT_TILE_DISPLAY
|
||||
} display_type_enum;
|
||||
|
||||
struct game_display
|
||||
{
|
||||
gc_component base;
|
||||
display_type_enum type;
|
||||
};
|
||||
|
||||
const struct game_display game_display;
|
||||
const struct gc_system game_display_system;
|
||||
|
||||
#endif //_TEAMS_COMPONENT_C_
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 3/3/20.
|
||||
//
|
||||
|
||||
#ifndef _TEAMS_COMPONENT_C_
|
||||
#define _TEAMS_COMPONENT_H_
|
||||
|
||||
#include "component.h"
|
||||
|
||||
struct game_manager
|
||||
{
|
||||
gc_component base;
|
||||
int happiness;
|
||||
int stupidity;
|
||||
};
|
||||
|
||||
const struct game_manager game_manager;
|
||||
|
||||
#endif //_TEAMS_COMPONENT_C_
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 3/10/20.
|
||||
//
|
||||
|
||||
#ifndef _MAP_MANAGER_COMPONENT_H_
|
||||
#define _MAP_MANAGER_COMPONENT_H_
|
||||
|
||||
#include "component.h"
|
||||
|
||||
enum brush
|
||||
{
|
||||
MOVE,
|
||||
RESET,
|
||||
ROTATE,
|
||||
TEXTURE
|
||||
};
|
||||
|
||||
struct map_manager_component
|
||||
{
|
||||
gc_component base;
|
||||
bool tile_mode;
|
||||
enum brush brush;
|
||||
void *selected_texture;
|
||||
};
|
||||
|
||||
const struct map_manager_component map_manager_component;
|
||||
|
||||
#endif //_MAP_MANAGER_COMPONENT_H_
|
||||
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 3/3/20.
|
||||
//
|
||||
|
||||
#ifndef _TEAMS_COMPONENT_C_
|
||||
#define _TEAMS_COMPONENT_H_
|
||||
|
||||
#include "component.h"
|
||||
|
||||
struct teams_component
|
||||
{
|
||||
gc_component base;
|
||||
float next_teams;
|
||||
float delay;
|
||||
char **prefabs;
|
||||
int *prefabs_size;
|
||||
int prefab_count;
|
||||
};
|
||||
|
||||
const struct teams_component teams_component;
|
||||
|
||||
bool teams_move_up(gc_scene *scene, float amount, float y_level);
|
||||
void pm_clicked(gc_engine *engine, gc_entity *entity);
|
||||
|
||||
#endif //_TEAMS_COMPONENT_C_
|
||||
Reference in New Issue
Block a user