Nebula
Loading...
Searching...
No Matches
animeventserver.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
17#include "messaging/handler.h"
18#include "core/singleton.h"
20
21//------------------------------------------------------------------------------
22namespace Animation
23{
63
64//------------------------------------------------------------------------------
67inline bool
69{
70 return this->isOpen;
71}
72} // namespace Audio
73//------------------------------------------------------------------------------
74
This is the server, which is triggered if a animation event is emitted.
Definition animeventserver.h:25
virtual ~AnimEventServer()
destructor
Definition animeventserver.cc:26
bool IsOpen() const
return true if open
Definition animeventserver.h:68
void Open()
open the server
Definition animeventserver.cc:37
void Close()
close the server
Definition animeventserver.cc:50
AnimEventServer()
constructor
Definition animeventserver.cc:18
void OnFrame(Timing::Time time)
delegate to attached handler
Definition animeventserver.cc:152
__DeclareClass(AnimEventServer)
void UnregisterAnimEventHandler(const Util::StringAtom &categoryName)
detach an animeventhandler
Definition animeventserver.cc:82
bool HandleAnimEvents(const Util::Array< Animation::AnimEventInfo > &eventz)
delegate this event to a attached handler
Definition animeventserver.cc:120
bool isOpen
Definition animeventserver.h:59
Util::Dictionary< Util::StringAtom, Ptr< AnimEventHandlerBase > > animEventHandler
Definition animeventserver.h:60
__DeclareSingleton(AnimEventServer)
void RegisterAnimEventHandler(const Ptr< AnimEventHandlerBase > &newHandler)
attach an animeventhandler
Definition animeventserver.cc:63
virtual bool HandleMessage(const Ptr< Messaging::Message > &msg)
handle a message, return true if handled
Definition animeventserver.cc:165
Message handlers are used to process a message.
Definition handler.h:20
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Nebula's dynamic array class.
Definition array.h:60
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition dictionary.h:34
A StringAtom.
Definition stringatom.h:22
Definition animeventhandlerbase.cc:10
double Time
the time datatype
Definition time.h:18