wont use customizable noise lol, too niche
This commit is contained in:
parent
1c27658641
commit
c60a0ce031
16 changed files with 3620 additions and 281 deletions
|
|
@ -1 +0,0 @@
|
|||
#include "game.h"
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <enginend/engine.h>
|
||||
|
||||
class game :public virtual enginend::scene {
|
||||
|
||||
};
|
||||
1
games/forespend/src/common/world/entity.cpp
Normal file
1
games/forespend/src/common/world/entity.cpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "entity.h"
|
||||
18
games/forespend/src/common/world/entity.h
Normal file
18
games/forespend/src/common/world/entity.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
#include <enginend/engine.h>
|
||||
|
||||
|
||||
struct ENTITYTYPE {
|
||||
enginend::nodes::trid::node3d* node;
|
||||
bool ISBILLBOARD;
|
||||
};
|
||||
|
||||
struct entity: enginend::nodes::node{
|
||||
ENTITYTYPE self;
|
||||
entity();
|
||||
void boot()override;
|
||||
void tick()override;
|
||||
void draw()override;
|
||||
void exit()override;
|
||||
~entity();
|
||||
};
|
||||
26
games/forespend/src/common/world/world.h
Normal file
26
games/forespend/src/common/world/world.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
#include <enginend/engine.h>
|
||||
|
||||
class world :public enginend::scene{
|
||||
enginend::group *players;
|
||||
enginend::group *entities;
|
||||
enginend::group *buildings;
|
||||
// server side
|
||||
world() {
|
||||
players=new enginend::group({});
|
||||
entities=new enginend::group({});
|
||||
nodes.push_back(players);
|
||||
|
||||
};
|
||||
void tick() override;
|
||||
~world();
|
||||
|
||||
Model terrain;
|
||||
std::vector<Model*> buildingmodels;
|
||||
std::vector<Model*> entitymodels;
|
||||
std::vector<Model*> models;
|
||||
// client side
|
||||
void boot() override;
|
||||
void draw() override;
|
||||
void exit() override;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue