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

@@ -55,7 +55,7 @@ public:
private:
LightHandle(LightController *const light_controller, unsigned int light_id, LightPrototype light_prototype, std::unique_ptr<PackedData> data_reference);
LightHandle(LightController *const light_controller, unsigned int light_id, LightPrototype light_prototype, PackedData *const data_reference);
// Reference to the LightController to handle deconstruction and removal using the light_id
LightController *const light_controller_ref;
@@ -67,5 +67,5 @@ private:
sf::Vector3f movement;
// Reference to the packed data in the LightController
std::unique_ptr<PackedData> data_reference;
PackedData *const data_reference;
};