screeps-server-mockup
screeps-server-mockup copied to clipboard
improvements?
This is super great, but I'm a little bit disappointed ;)
I hoped it would be possible to use it to run the server in an editor like webstorm and set breakpoints in own code while running... but I guess that's not easy possible.
Another nice thing would be being able to get a list / test which intents where executed in the tick?
I haven't tried hooking in breakpoints to VSCode or WebStorm, but that would indeed be useful.
I was wondering about getting a list of intents as well. Unfortunately right now db[users.intents]
always returns empty and I haven't found a way to grab it out of the server. Does anyone else know the server code well enough for how to fetch the intent list?
hmmm... is there an easy way to inject code for a user for the next tick? maybe like how the console of the client works ?
even better of course would be if you can get the response after the tick .)
intents are only visible in between usersQueue.whenAllDone(); and roomsQueue.addMulti(rooms)