Micropolis
emscripten.cpp File Reference

Emscripten bindings for Micropolis game engine. More...

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

Go to the source code of this file.

Functions

 EMSCRIPTEN_BINDINGS (MicropolisEngine)
 

Detailed Description

Emscripten bindings for Micropolis game engine.

This file contains Emscripten bindings that allow the Micropolis (open-source version of SimCity) game engine to be used in a web environment. It utilizes Emscripten's Embind feature to expose C++ classes, functions, enums, and data structures to JavaScript, enabling the Micropolis game engine to be controlled and interacted with through a web interface. This includes key functionalities such as simulation control, game state management, map manipulation, and event handling. The binding includes only essential elements for gameplay, omitting low-level rendering and platform-specific code.

Definition in file emscripten.cpp.