2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-04-16 19:50:45 -07:00
|
|
|
|
2019-09-23 12:00:23 -07:00
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/rstl.hpp"
|
|
|
|
#include "Runtime/Weapon/WeaponCommon.hpp"
|
2016-11-22 12:43:16 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2018-12-07 21:30:43 -08:00
|
|
|
|
|
|
|
class CWeaponMgr {
|
2020-03-07 09:14:07 -08:00
|
|
|
std::map<TUniqueId, rstl::reserved_vector<s32, 15>> x0_weapons;
|
2016-04-16 19:50:45 -07:00
|
|
|
|
2016-12-09 18:35:20 -08:00
|
|
|
public:
|
2018-12-07 21:30:43 -08: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-16 19:50:45 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|