mwhicks-dev / splat-alpha

2D platforming game engine based in C++ and built on top of the SFML multimedia suite.
0 stars 0 forks source link

Implement "Event context" in environment #57

Closed mwhicks-dev closed 5 months ago

mwhicks-dev commented 5 months ago

EnvironmentInteface::set_context(size_t): std::string EnvironmentInteface::get_context(size_t, std::string): void

Allows for events to "return" a serialized something in a way that can be accessed by listeners/controllers when needed

mwhicks-dev commented 5 months ago

Of course, size_t Event::context will be added and serialized, 0 default; 0 context -> nothing will be stored, do not block