+static uint8_t parse_command_meta(char * tok0)
+{
+ if (!strcmp("QUIT", tok0))
+ {
+ return 2;
+ }
+ if (!strcmp("PING", tok0))
+ {
+ send_to_outfile("PONG\n", 1);
+ return 1;
+ }
+ if (!strcmp("STACK", tok0))
+ {
+ send_to_outfile("THINGS_BELOW_PLAYER START\n", 1);
+ struct Thing * player = get_player();
+ struct Thing * t;
+ for (t = world.things; t; t = t->next)
+ {
+ if ( t->pos.y == player->pos.y && t->pos.x == player->pos.x
+ && t != player)
+ {
+ struct ThingType * tt = get_thing_type(t->type);
+ send_to_outfile(tt->name, 0);
+ send_to_outfile("\n", 1);
+ }
+ }
+ send_to_outfile("THINGS_BELOW_PLAYER END\n", 1);
+ return 1;
+ }
+ return 0;
+}
+
+
+