Added some documentation on the lights. Got most everything tidied up. Having some issues with std::moving unique ptrs. Going to change them to shared_ptr

This commit is contained in:
MitchellHansen
2017-02-11 21:43:32 -08:00
parent bfb6d922a3
commit 6e0d5814e1
7 changed files with 68 additions and 20 deletions

View File

@@ -3,12 +3,18 @@
LightHandle::LightHandle(LightController *const light_controller, unsigned int light_id, LightPrototype light_prototype, std::unique_ptr<PackedData> data_reference) :
light_controller_ref(light_controller), data_reference(std::move(data_reference)) {
light_controller_ref(light_controller), light_id(light_id) {
data_reference = std::move(data_reference);
friction_coefficient = light_prototype.friction;
default_impulse = light_prototype.impulse;
movement = light_prototype.movement;
data_reference->direction_cartesian = light_prototype.direction_cartesian;
data_reference->position = light_prototype.position;
data_reference->rgbi = light_prototype.rgbi;
}