omi-eikyo/src/g_player.h

35 lines
729 B
C

// Copyright © 2017 Project Golan, all rights reserved.
#ifndef g_player_h
#define g_player_h
#include "g_object.h"
#define G_Player_propMem(t, name) G_Entity_propMem(G_Player_##name, t, name)
// Types ---------------------------------------------------------------------|
enum
{
G_Player_ammo,
G_Player_propC
};
#define G_Player_props() G_Entity_props() \
G_Player_propMem(unsigned, ammo)
typedef struct G_playr // Player
{
int id;
G_Player_props()
} G_playr;
// Extern Objects ------------------------------------------------------------|
extern int G_Player_Count;
// Extern Functions ----------------------------------------------------------|
DGE_Callback void G_Player_Think(unsigned id);
#endif