Added vector of flames to the level.
This commit is contained in:
parent
c8788f3329
commit
f92c7bf6c3
4
level.cc
4
level.cc
@ -227,6 +227,10 @@ void Level::addTrigger(Trigger trigger) {
|
||||
this->triggers.push_back(trigger);
|
||||
}
|
||||
|
||||
void Level::addFlame(Flame flame){
|
||||
this->flames.push_back(flame);
|
||||
}
|
||||
|
||||
lua_State* Level::getLuaState() {
|
||||
return luaState;
|
||||
}
|
||||
|
3
level.hh
3
level.hh
@ -10,6 +10,7 @@
|
||||
#include "camera.hh"
|
||||
#include "physics.hh"
|
||||
#include "trigger.hh"
|
||||
#include "flame.hh"
|
||||
|
||||
extern "C" {
|
||||
#include "extern/lua/src/lua.h"
|
||||
@ -44,6 +45,7 @@ class Level {
|
||||
void setSkydomeObject(Object* object);
|
||||
void addObject(Object* object);
|
||||
void addPhysicsObject(Object* object);
|
||||
void addFlame(Flame flame);
|
||||
void setAmbientLight(glm::vec3 colour);
|
||||
void setFogColour(glm::vec4 colour);
|
||||
void setDirectionalLight(Light light);
|
||||
@ -62,6 +64,7 @@ class Level {
|
||||
std::vector<Object*> physicsObjects;
|
||||
std::vector<Light> lights;
|
||||
std::vector<Trigger> triggers;
|
||||
std::vector<Flame> flames;
|
||||
glm::vec3 ambientLight;
|
||||
glm::vec4 fogColour;
|
||||
Light directionalLight;
|
||||
|
Loading…
Reference in New Issue
Block a user