added mesh rendering
This commit is contained in:
35
game/client/__build.c
Normal file
35
game/client/__build.c
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "god/build.h"
|
||||
#include "god/c.h"
|
||||
#include "god/ld.h"
|
||||
|
||||
|
||||
char* client_dll = 0;
|
||||
void client_build(struct build_data b)
|
||||
{
|
||||
char* files[] = {
|
||||
"game/client/baseplayer.cpp",
|
||||
NULL,
|
||||
};
|
||||
|
||||
struct project p = {
|
||||
.b = &b,
|
||||
.files = files,
|
||||
.name = "client",
|
||||
};
|
||||
|
||||
struct project o = C_compile(p, (struct C_settings){
|
||||
.generation_flags = C_GENERATION_FLAGS_PIC,
|
||||
.compile_flags = C_COMPILE_FLAGS_WALL,
|
||||
.include_dirs = include_dirs,
|
||||
});
|
||||
char* libs[] = {
|
||||
"c",
|
||||
NULL,
|
||||
};
|
||||
|
||||
client_dll = ld_link_project(o, (struct link_settings){
|
||||
.type = LINK_TYPE_DYNAMIC,
|
||||
.libs = libs,
|
||||
});
|
||||
mv("build/"GAME_NAME"/game/"GAME_NAME"/bin/libclient.so",server_dll);
|
||||
}
|
||||
32
game/client/baseplayer.cpp
Normal file
32
game/client/baseplayer.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "baseentity.h"
|
||||
|
||||
class C_BasePlayer: public C_BaseEntity
|
||||
{
|
||||
public:
|
||||
virtual void Precache ( void ) override;
|
||||
virtual void Spawn( void ) override;
|
||||
virtual void Destroy( void ) override;
|
||||
virtual void Think( float fDelta ) override;
|
||||
};
|
||||
|
||||
|
||||
void C_BasePlayer::Precache()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void C_BasePlayer::Spawn()
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
void C_BasePlayer::Destroy()
|
||||
{
|
||||
|
||||
}
|
||||
void C_BasePlayer::Think( float fDelta )
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
LINK_CLIENT_ENTITY(C_BasePlayer, CBasePlayer)
|
||||
Reference in New Issue
Block a user