|
Zappy Server
C++ game server: world, rules, scheduler, network
|
Parses a raw GUI client line into a typed Gui::Request. More...
#include <GuiParser.hpp>
Collaboration diagram for GuiParser:Static Public Member Functions | |
| static std::optional< Gui::Request > | parse (std::string_view line) |
| Parse one line from a GUI client (no trailing newline). | |
Parses a raw GUI client line into a typed Gui::Request.
Strict and case-sensitive. Returns nullopt on malformed input (missing args, bad integers, missing '#' prefix). Same policy as AiParser.
Definition at line 50 of file GuiParser.hpp.
|
static |
Parse one line from a GUI client (no trailing newline).
Definition at line 14 of file GuiParser.cpp.
References parseInt(), and parsePlayerId().
Referenced by CommandDispatcher::_dispatchGui().
Here is the call graph for this function:
Here is the caller graph for this function: