aboutsummaryrefslogtreecommitdiff
path: root/sword2/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/events.h')
-rw-r--r--sword2/events.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sword2/events.h b/sword2/events.h
index a0badf814a..f5ef1c9776 100644
--- a/sword2/events.h
+++ b/sword2/events.h
@@ -22,10 +22,12 @@
#include "object.h"
-typedef struct {
+namespace Sword2 {
+
+struct _event_unit {
uint32 id;
uint32 interact_id;
-} _event_unit;
+};
#define MAX_events 10
@@ -41,4 +43,6 @@ uint32 Check_event_waiting(void);
void Kill_all_ids_events(uint32 id);
uint32 CountEvents(void);
+} // End of namespace Sword2
+
#endif