Clean, self-contained extraction of the BattleTech-specific work from the
reverse-engineering workspace -- engine + game + content + build, with nothing
from Red Planet or the raw archive dumps. Builds green (Win32) and runs the
single-player drive->animate->target->fire->damage->destroy loop out of the box.
Layout:
engine/ MUNGA + MUNGA_L4 shared 2007 engine, carrying our BT render/loader
work (bgfload/L4D3D/L4VIDEO: BSL bit-slice decode, LOD/ground/shadow
models) + image codec; the minimal rp/ headers the audio HAL needs
game/ reconstructed BT logic + surviving-original BT source + fwd shims
+ WinMain launcher
content/ full runtime tree (BTL4.RES, VIDEO/, GAUGE/, AUDIO/, eggs, BTDPL.INI)
docs/ format specs + reconstruction ledgers
reference/ raw Ghidra pseudocode (recon source-of-truth) + decomp exporter
tools/ MP console emulator + map/resource scanners
One top-level CMake builds munga_engine lib + bt410_l4 game lib + btl4.exe.
All paths relativized (186 fwd shims + ~437 CMake abs paths -> repo-relative);
DXSDK is the one external, overridable via -DDXSDK. Verified: builds to a
byte-identical 2.27MB exe and runs combat (TARGET DESTROYED, 0 crashes) against
the bundled content.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
133 lines
5.5 KiB
C++
133 lines
5.5 KiB
C++
/*
|
|
* WARNING: machine generated code.
|
|
*
|
|
* do NOT edit this file, edit the
|
|
* original '.epp' file and regenerate this
|
|
* one.
|
|
*/
|
|
|
|
#ifndef ____DMELEM_H
|
|
#define ____DMELEM_H
|
|
|
|
#include <dsys/divtypes.h>
|
|
#include <dvs/vl.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* Instance number access macros.
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
* Generated function declarations.
|
|
*/
|
|
extern int32 ModuleDmInit ( void );
|
|
|
|
extern InstanceNo (VLCreate_dmVector)(float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLDelete_dmVector)(InstanceNo ino, VLUpdateMode mode);
|
|
extern VLStatus (VLUpdate_dmVector)(InstanceNo ino, float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLExtract_dmVector)(InstanceNo ino , float32 *data, VLTime *utime);
|
|
|
|
extern InstanceNo (VLCreate_dmPoint)(float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLDelete_dmPoint)(InstanceNo ino, VLUpdateMode mode);
|
|
extern VLStatus (VLUpdate_dmPoint)(InstanceNo ino, float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLExtract_dmPoint)(InstanceNo ino , float32 *data, VLTime *utime);
|
|
|
|
extern InstanceNo (VLCreate_dmEuler)(float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLDelete_dmEuler)(InstanceNo ino, VLUpdateMode mode);
|
|
extern VLStatus (VLUpdate_dmEuler)(InstanceNo ino, float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLExtract_dmEuler)(InstanceNo ino , float32 *data, VLTime *utime);
|
|
|
|
extern InstanceNo (VLCreate_dmQuaternion)(float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLDelete_dmQuaternion)(InstanceNo ino, VLUpdateMode mode);
|
|
extern VLStatus (VLUpdate_dmQuaternion)(InstanceNo ino, float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLExtract_dmQuaternion)(InstanceNo ino , float32 *data, VLTime *utime);
|
|
|
|
extern InstanceNo (VLCreate_dmScale)(float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLDelete_dmScale)(InstanceNo ino, VLUpdateMode mode);
|
|
extern VLStatus (VLUpdate_dmScale)(InstanceNo ino, float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLExtract_dmScale)(InstanceNo ino , float32 *data, VLTime *utime);
|
|
|
|
extern InstanceNo (VLCreate_dmMatrix)(float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLDelete_dmMatrix)(InstanceNo ino, VLUpdateMode mode);
|
|
extern VLStatus (VLUpdate_dmMatrix)(InstanceNo ino, float32 *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLExtract_dmMatrix)(InstanceNo ino , float32 *data, VLTime *utime);
|
|
|
|
extern InstanceNo (VLCreate_dmPosition)(dmPosition *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLDelete_dmPosition)(InstanceNo ino, VLUpdateMode mode);
|
|
extern VLStatus (VLUpdate_dmPosition)(InstanceNo ino, dmPosition *data, VLTime *time, VLUpdateMode mode);
|
|
extern VLStatus (VLExtract_dmPosition)(InstanceNo ino , dmPosition *data, VLTime *utime);
|
|
|
|
#ifdef __VL_INLINE_ACCESS__
|
|
#define VLCreate_dmVector( d, t, m) vlCreateInstance(el_dmVector, 0, (d),(t),(m))
|
|
#define VLDelete_dmVector(i,m) vlDeleteInstance((i),(m))
|
|
#define VLUpdate_dmVector( i, d, t, m) vlUpdateInstance((i),(d),(t),(m))
|
|
#define VLExtract_dmVector(i,d,t) vlExtractInstance((i),(d),(t))
|
|
|
|
#define VLCreate_dmPoint( d, t, m) vlCreateInstance(el_dmPoint, 0, (d),(t),(m))
|
|
#define VLDelete_dmPoint(i,m) vlDeleteInstance((i),(m))
|
|
#define VLUpdate_dmPoint( i, d, t, m) vlUpdateInstance((i),(d),(t),(m))
|
|
#define VLExtract_dmPoint(i,d,t) vlExtractInstance((i),(d),(t))
|
|
|
|
#define VLCreate_dmEuler( d, t, m) vlCreateInstance(el_dmEuler, 0, (d),(t),(m))
|
|
#define VLDelete_dmEuler(i,m) vlDeleteInstance((i),(m))
|
|
#define VLUpdate_dmEuler( i, d, t, m) vlUpdateInstance((i),(d),(t),(m))
|
|
#define VLExtract_dmEuler(i,d,t) vlExtractInstance((i),(d),(t))
|
|
|
|
#define VLCreate_dmQuaternion( d, t, m) vlCreateInstance(el_dmQuaternion, 0, (d),(t),(m))
|
|
#define VLDelete_dmQuaternion(i,m) vlDeleteInstance((i),(m))
|
|
#define VLUpdate_dmQuaternion( i, d, t, m) vlUpdateInstance((i),(d),(t),(m))
|
|
#define VLExtract_dmQuaternion(i,d,t) vlExtractInstance((i),(d),(t))
|
|
|
|
#define VLCreate_dmScale( d, t, m) vlCreateInstance(el_dmScale, 0, (d),(t),(m))
|
|
#define VLDelete_dmScale(i,m) vlDeleteInstance((i),(m))
|
|
#define VLUpdate_dmScale( i, d, t, m) vlUpdateInstance((i),(d),(t),(m))
|
|
#define VLExtract_dmScale(i,d,t) vlExtractInstance((i),(d),(t))
|
|
|
|
#define VLCreate_dmMatrix( d, t, m) vlCreateInstance(el_dmMatrix, 0, (d),(t),(m))
|
|
#define VLDelete_dmMatrix(i,m) vlDeleteInstance((i),(m))
|
|
#define VLUpdate_dmMatrix( i, d, t, m) vlUpdateInstance((i),(d),(t),(m))
|
|
#define VLExtract_dmMatrix(i,d,t) vlExtractInstance((i),(d),(t))
|
|
|
|
#define VLCreate_dmPosition( d, t, m) vlCreateInstance(el_dmPosition, 0, (d),(t),(m))
|
|
#define VLDelete_dmPosition(i,m) vlDeleteInstance((i),(m))
|
|
#define VLUpdate_dmPosition( i, d, t, m) vlUpdateInstance((i),(d),(t),(m))
|
|
#define VLExtract_dmPosition(i,d,t) vlExtractInstance((i),(d),(t))
|
|
|
|
#endif
|
|
/*
|
|
* Symbolic element names.
|
|
*/
|
|
extern const ElementHandle el_dmVector;
|
|
extern const ElementHandle el_dmPoint;
|
|
extern const ElementHandle el_dmEuler;
|
|
extern const ElementHandle el_dmQuaternion;
|
|
extern const ElementHandle el_dmScale;
|
|
extern const ElementHandle el_dmMatrix;
|
|
extern const ElementHandle el_dmPosition;
|
|
|
|
static const int ElCountDm = 7;
|
|
|
|
/*
|
|
* Epp declaraions. NOT 'C' - hence the ifdef guard!
|
|
*/
|
|
#ifdef __EPP__
|
|
%%
|
|
extern atomic element dmVector;
|
|
extern atomic element dmPoint;
|
|
extern atomic element dmEuler;
|
|
extern atomic element dmQuaternion;
|
|
extern atomic element dmScale;
|
|
extern atomic element dmMatrix;
|
|
extern atomic element dmPosition;
|
|
%%
|
|
#endif/* __EPP__ */
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* ____DMELEM_H */
|