Commit 5d872ee7 authored by guillaume's avatar guillaume

initialize Entity

parent 6cde3198
......@@ -17,7 +17,7 @@ find_package(raylib 3.0 REQUIRED)
add_executable(nw-hello src/main-hello.c)
target_link_libraries(nw-hello raylib m)
add_executable(nw-viewer src/main-viewer.c src/networld.c src/controlpanel.c)
add_executable(nw-viewer src/main-viewer.c src/networld.c src/controlpanel.c src/entity.c)
target_link_libraries(nw-viewer raylib m)
#without cmake package...
......
#include "entity.h"
#ifndef ENTITY_H
#define ENTITY_H
#include "raylib.h"
//-----------------------------------//
//-- Entity Descriptor --//
//-----------------------------------//
struct Str_EntityDsc {
Color color;
};
typedef struct Str_EntityDsc EntityDsc;
struct Str_Entity {
//! Owner of the Entity (classically the player Id)
int owner;
EntityDsc descriptor;
};
typedef struct Str_Entity Entity;
#endif // ENTITY_H
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment