|
OpenBF1942-Plus
Refractor 1, rebuilt from scratch
|
| Module | Role | May use |
|---|---|---|
| engine/rfa.* | archives, LZO1X | std only |
| engine/vfs.* | mod stack, path lookup | rfa |
| engine/dds.* | texture decoding | std only |
| engine/terrain.* | terrain settings, heightmap | vfs (key normalisation) |
| engine/con.* | CON interpreter (port of tools/con.py) | vfs |
| engine/sm.* | static meshes, .rs shaders | con (lower) |
| engine/tm.* | tree meshes | std only |
| engine/anim.* | skeletons, skins, animations, pose, skinning | math |
| engine/mat.h | 4x4 matrices, game rotation convention | std only |
| engine/scene.* | instances → mesh paths + world matrices | con, vfs, math |
| engine/damage.* | MaterialManager damage table | std only |
| engine/conquest.* | flags and tickets | con |
| engine/physics.* | Jolt world, vehicle parts as forces (ADR 0004) | scene, sm, terrain, con, math, Jolt |
| engine/nav.* | path-finding maps, A* | std only |
| engine/audio.* | .wav, .ssc, software mixer (ADR 0006) | std only |
| engine/hud.* | .font, HUD layout as quads | std only |
| engine/sound.* | template → sound script, file cache, plays on the mixer | audio, con, vfs |
| engine/effects.* | effect templates, particle simulation, sprites to draw | con, scene (parse_vec3), math |
| engine/game.* | game layer: vehicles, soldiers, bots, weapons, damage, conquest, AI, demos, camera, HUD data | physics, scene, damage, conquest, nav, effects, hud (types), con, terrain |
| engine/render.* (library obf_render) | OpenGL renderer: terrain, meshes, skinning, sky, tracers, effect sprites, HUD quads | game (views), hud, scene, sm, tm, anim, dds, epoxy |
| engine/mapview.cpp | executable: arguments, window, input, audio device, loop | game, render, sound, SDL2 |
| engine/sim.cpp | executable obf_sim: the game without window or GL | game |
| tools/*.py | Python reference implementations | rfa ← con ← sm, tm, anim, pathfinding |