Lights are now working correctly. Need to update the kernel to account for multiple lights, and add sfEventSubscriber to the LightHandler

This commit is contained in:
MitchellHansen
2017-02-11 23:16:09 -08:00
parent 6e0d5814e1
commit e364c5380d
5 changed files with 16 additions and 22 deletions

View File

@@ -2,10 +2,8 @@
#include "LightController.h"
LightHandle::LightHandle(LightController *const light_controller, unsigned int light_id, LightPrototype light_prototype, std::unique_ptr<PackedData> data_reference) :
light_controller_ref(light_controller), light_id(light_id) {
data_reference = std::move(data_reference);
LightHandle::LightHandle(LightController *const light_controller, unsigned int light_id, LightPrototype light_prototype, PackedData *const data_reference) :
light_controller_ref(light_controller), light_id(light_id), data_reference(data_reference) {
friction_coefficient = light_prototype.friction;
default_impulse = light_prototype.impulse;
@@ -29,6 +27,7 @@ LightHandle::~LightHandle() {
}
void LightHandle::set_friction(float friction)
{