EasyRPG / Player

RPG Maker 2000/2003 and EasyRPG games interpreter
https://easyrpg.org/player/
GNU General Public License v3.0
966 stars 183 forks source link

FileRequestBinding question #3237

Closed monokotech closed 3 weeks ago

monokotech commented 3 weeks ago

Could the request_id be directly stored in the listeners? This way, there is no need to add the FileRequestBinding in the class.

std::vector<std::pair<FileRequestBindingWeak, std::function<void(FileRequestResult*)> > > listeners;

to:

std::vector<std::pair<int, std::function<void(FileRequestResult*)> > > listeners;

And I am starting to work on the callback API.

I will add the following lines to the namespace of Player:

std::vector<std::function<void(int dir)>> main_player_moved_listeners;
...
more listeners
Ghabry commented 3 weeks ago

lets move this to #3224