Micropolis
callback.cpp File Reference

Implementation of the Callback interface for Micropolis game engine. More...

#include "micropolis.h"
#include <emscripten.h>

Go to the source code of this file.

Detailed Description

Implementation of the Callback interface for Micropolis game engine.

This file provides the implementation of the Callback class defined in callback.h. It includes a series of methods that are called by the Micropolis game engine to interact with the user interface. These methods include functionalities like logging actions, updating game states, and responding to user actions. The use of EM_ASM macros indicates direct interaction with JavaScript, typical in a web environment using Emscripten.

Definition in file callback.cpp.