# HG changeset patch # User koryspansel # Date 1315968263 25200 # Node ID 28cf0baf2772c40214e33bbe5c21b20505628f84 # Parent c046b9e8ae326caaabc75943c3e0af63fb29b557 Remove duplicate Event and EventResult definitions diff -r c046b9e8ae32 -r 28cf0baf2772 LightClone/Source/EventSource.h --- 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); }; diff -r c046b9e8ae32 -r 28cf0baf2772 LightClone/Source/EventSystem.h --- 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 {