view LightClone/Source/GuiEvent.cpp @ 65:41980ff0607d

Added shader and textures for bot
author koryspansel <koryspansel@bendbroadband.com>
date Wed, 05 Oct 2011 12:55:46 -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);
	}
}