generated from the code
Python: every page
The game-script layer: lifecycle, every host function, host.Object method and event per game.
13 pages.
- The Python layer: How the engine runs the games' Python 2.3 scripts - start-up, the host module, events, timers, triggers, game modes - and how bf2-rs embeds the same interpreter.
- Python host API reference: Every function, host.Object method and event the engine hands to game scripts, for each game. The tables are generated from the bf2-rs sources on every build (crates/bf2-python/src/pythonhost.rs, crates/bfh-server/src/tables.rs, ..
- Console, log and RCON: 3 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Players (pmgr_): 16 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Timers and handlers: 9 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Objects (omgr_): 3 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Game logic (sgl_, gl_, ss_, sh_): 23 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Persistence and stats (pers_): 25 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Online services (gs_): 3 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Triggers (trig_): 4 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- Heroes customisation (custo_): 1 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
- host.Object methods: Scripts never construct host.Object; they receive one from host.omgr_getObjectsOfType, pmgr_p_get('vehicle', ...), handler arguments and similar. Each method below is bound on every such object.
- Events: A script subscribes with host.registerHandler('PlayerKilled', callback, 1); the name must match exactly (case sensitive). The id is the event's position in the game's table: the same name can have a different id in each game, and a name ..
Source:
tools/devwiki/build.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.