Moved away from shared pointers in event handlers - didn't make sense to expose the event management implementation to handlers.
Also some other bits of tidying.
This commit is contained in:
@@ -44,7 +44,11 @@
|
||||
namespace Bloom::Events
|
||||
{
|
||||
template <class EventType>
|
||||
using EventPointer = std::shared_ptr<const EventType>;
|
||||
using SharedEventPointer = std::shared_ptr<const EventType>;
|
||||
|
||||
using GenericEventPointer = EventPointer<Event>;
|
||||
template <class EventType>
|
||||
using EventRef = const EventType&;
|
||||
|
||||
using SharedGenericEventPointer = SharedEventPointer<Event>;
|
||||
using GenericEventRef = EventRef<Event>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user