metaforce/Runtime/Weapon/CWeaponMgr.hpp

24 lines
511 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-17 02:50:45 +00:00
#include <map>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/rstl.hpp"
#include "Runtime/Weapon/WeaponCommon.hpp"
2016-11-22 20:43:16 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
class CWeaponMgr {
std::map<TUniqueId, rstl::reserved_vector<s32, 15>> x0_weapons;
2016-04-17 02:50:45 +00:00
public:
2018-12-08 05:30:43 +00:00
void Add(TUniqueId, EWeaponType);
void Remove(TUniqueId);
void IncrCount(TUniqueId, EWeaponType);
void DecrCount(TUniqueId, EWeaponType);
s32 GetNumActive(TUniqueId, EWeaponType) const;
s32 GetIndex(TUniqueId) const;
2016-04-17 02:50:45 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce