2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 04:27:42 +00:00

Add some script loaders

This commit is contained in:
Jack Andersen
2016-04-19 11:25:26 -10:00
parent 76afccbdbe
commit 8537ea5d8d
17 changed files with 601 additions and 139 deletions

View File

@@ -0,0 +1,42 @@
#ifndef __URDE_CDAMAGEINFO_HPP__
#define __URDE_CDAMAGEINFO_HPP__
#include "RetroTypes.hpp"
#include "CWeaponMgr.hpp"
namespace urde
{
class CDamageInfo
{
EWeaponType x0_type = EWeaponType::None;
union
{
struct
{
bool x4_24_ : 1;
bool x4_25_ : 1;
bool x4_26_ : 1;
};
u8 _dummy = 0;
};
float x8_damage1;
float xc_damage2;
float x10_radius;
float x14_knockback;
bool x18_ = false;
public:
CDamageInfo(CInputStream& in)
{
in.readUint32Big();
x0_type = EWeaponType(in.readUint32Big());
x8_damage1 = in.readFloatBig();
xc_damage2 = x8_damage1;
x10_radius = in.readFloatBig();
x14_knockback = in.readFloatBig();
}
};
}
#endif // __URDE_CDAMAGEINFO_HPP__