mirror of
https://github.com/pret/pokeheartgold.git
synced 2024-12-14 00:20:22 +00:00
26 lines
526 B
C
26 lines
526 B
C
#ifndef GUARD_FX_H
|
|
#define GUARD_FX_H
|
|
|
|
struct FxSpec {
|
|
const char *name;
|
|
int intpart;
|
|
int fracpart;
|
|
};
|
|
|
|
struct FxConst {
|
|
const char *name;
|
|
const struct FxSpec *fxtype;
|
|
double value;
|
|
};
|
|
|
|
extern const struct FxConst gFxConstTable[];
|
|
extern const int gNFxConstTable;
|
|
|
|
// Generates the integer value of the fixed-point value represented by FxConst*
|
|
long long MakeFix(const struct FxConst *constdef);
|
|
|
|
// For FxSpec*, get the width in bits.
|
|
int GetFxWidth(const struct FxSpec *fxtype);
|
|
|
|
#endif //GUARD_FX_H
|