metaforce/Runtime/Weapon/CWeaponMgr.hpp

24 lines
511 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-04-16 19:50:45 -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 {
std::map<TUniqueId, rstl::reserved_vector<s32, 15>> x0_weapons;
2016-04-16 19:50:45 -07: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