Mercurial > LightClone
changeset 13:28cf0baf2772
Remove duplicate Event and EventResult definitions
author | koryspansel <koryspansel@bendbroadband.com> |
---|---|
date | Tue, 13 Sep 2011 19:44:23 -0700 |
parents | c046b9e8ae32 |
children | 7081e8e6008c |
files | LightClone/Source/EventSource.h LightClone/Source/EventSystem.h |
diffstat | 2 files changed, 7 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/LightClone/Source/EventSource.h Tue Sep 13 18:26:29 2011 -0700 +++ b/LightClone/Source/EventSource.h Tue Sep 13 19:44:23 2011 -0700 @@ -9,10 +9,13 @@ #include "ArrayList.h" /* - * + * EventSystem + */ +class EventSystem; /* * EventSource + * An event source, as its name implies, is an object that generates events */ class EventSource { @@ -25,6 +28,7 @@ /* * Generate + * Give the event source a chance to post events to the system */ virtual void Generate(EventSystem* pSystem); };
--- a/LightClone/Source/EventSystem.h Tue Sep 13 18:26:29 2011 -0700 +++ b/LightClone/Source/EventSystem.h Tue Sep 13 19:44:23 2011 -0700 @@ -12,24 +12,9 @@ //TODO: Support registering sinks for specific events /* - * EventResult - */ -enum -{ - EventResult_Stop, - EventResult_Continue, - EventResult_Error, -}; - -/* - * Event - */ -struct Event -{ -}; - -/* * EventSystem + * The system ties together event sources and event sinks, and provides an + * interface to the system for registering these objects. */ class EventSystem {