]> code.bitgloo.com Git - clyne/entityx.git/commit
Add dereference operator to ComponentHandle
authorlethal-guitar <lethal_guitar128@web.de>
Wed, 28 Dec 2016 14:50:28 +0000 (15:50 +0100)
committerlethal-guitar <lethal_guitar128@web.de>
Wed, 28 Dec 2016 14:50:28 +0000 (15:50 +0100)
commitb8352b0fbe7c3d61cd0452900dea9ea963400520
tree41f76c7c07906904ed4af8ed978fa14fe0518aac
parent4fe45348467145dbf0c6403dde4b730de5e575e1
Add dereference operator to ComponentHandle

This makes it possible to write code like this:

  auto& componentRef = *someEntity.component<Position>();

This was already possible previously, but required calling .get() on the
component handle.
entityx/Entity.h
entityx/Entity_test.cc