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

Improve how backend events processing works #48

Closed mwhicks-dev closed 5 months ago

mwhicks-dev commented 5 months ago

Instead of having the client be responsible for so much, I should just have two handlers for each event type (one client-side and one server-side) when different behaviors are needed... obviously. Also, having the create events return a create event is really weird. I'd rather just have it send some other struct.

mwhicks-dev commented 5 months ago

Handlers should also just take events since those are used in forming their requests anyways

mwhicks-dev commented 5 months ago

Event time is also never used and can be removed

mwhicks-dev commented 5 months ago

client_side also not really useful since we choose which handler to push to