Mercurial > LightClone
view LightClone/Source/GuiEvent.cpp @ 63:44dcff5abf12
Work on ServiceProvider
author | koryspansel |
---|---|
date | Tue, 04 Oct 2011 12:04:09 -0700 |
parents | b4dc5d674e22 |
children |
line wrap: on
line source
/* * GuiEvent */ #include "GuiEvent.h" /* * GuiEvent */ GuiEvent::GuiEvent(const char* pEventName) : kName(pEventName) { } /* * ~GuiEvent */ GuiEvent::~GuiEvent() { for(uint32 i = 0; i < kSubscriptions.Size(); ++i) { delete kSubscriptions[i]; } kSubscriptions.Clear(); } /* * Fire */ void GuiEvent::Fire(GuiEventArguments& kArguments) { for(uint32 i = 0; i < kSubscriptions.Size(); ++i) { (*kSubscriptions[i])(kArguments); } }