Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NetWorld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fatus
NetWorld
Commits
5d872ee7
Commit
5d872ee7
authored
Oct 20, 2020
by
guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialize Entity
parent
6cde3198
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
entity.c
src/entity.c
+3
-0
entity.h
src/entity.h
+22
-0
No files found.
CMakeLists.txt
View file @
5d872ee7
...
@@ -17,7 +17,7 @@ find_package(raylib 3.0 REQUIRED)
...
@@ -17,7 +17,7 @@ find_package(raylib 3.0 REQUIRED)
add_executable
(
nw-hello src/main-hello.c
)
add_executable
(
nw-hello src/main-hello.c
)
target_link_libraries
(
nw-hello raylib m
)
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
)
target_link_libraries
(
nw-viewer raylib m
)
#without cmake package...
#without cmake package...
...
...
src/entity.c
0 → 100644
View file @
5d872ee7
#include "entity.h"
src/entity.h
0 → 100644
View file @
5d872ee7
#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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment