2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-17 02:50:45 +00:00
|
|
|
|
2016-11-22 20:43:16 +00:00
|
|
|
#include "RetroTypes.hpp"
|
2016-12-22 19:57:21 +00:00
|
|
|
#include "WeaponCommon.hpp"
|
2016-11-22 20:43:16 +00:00
|
|
|
|
2016-04-17 02:50:45 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CWeaponMgr
|
|
|
|
{
|
2016-12-10 02:35:20 +00:00
|
|
|
std::map<TUniqueId, rstl::reserved_vector<s32, 10>> x0_weapons;
|
|
|
|
public:
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|