2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-17 02:50:45 +00:00
|
|
|
|
2019-09-23 19:00:23 +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 {
|
2020-03-07 17:14:07 +00:00
|
|
|
std::map<TUniqueId, rstl::reserved_vector<s32, 15>> x0_weapons;
|
2016-04-17 02:50:45 +00:00
|
|
|
|
2016-12-10 02:35:20 +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
|