diff --git a/source/Entity.hpp b/source/Entity.hpp index 2bd90007..113f2b4a 100644 --- a/source/Entity.hpp +++ b/source/Entity.hpp @@ -11,6 +11,7 @@ // ------------------------------------------------------------------------------------------------ #include +#include // ------------------------------------------------------------------------------------------------ namespace SqMod { @@ -123,7 +124,10 @@ public: static constexpr const SQChar* CName = "CBlip"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -197,7 +201,10 @@ public: static constexpr const SQChar* CName = "CCheckpoint"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -283,7 +290,10 @@ public: static constexpr const SQChar* CName = "CKeybind"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -357,7 +367,10 @@ public: static constexpr const SQChar* CName = "CObject"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -433,7 +446,10 @@ public: static constexpr const SQChar* CName = "CPickup"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -595,7 +611,10 @@ public: static constexpr const SQChar* CName = "CPlayer"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -669,7 +688,10 @@ public: static constexpr const SQChar* CName = "CSphere"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -742,7 +764,10 @@ public: static constexpr const SQChar* CName = "CSprite"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -815,7 +840,10 @@ public: static constexpr const SQChar* CName = "CTextdraw"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------ @@ -899,7 +927,10 @@ public: static constexpr const SQChar* CName = "CVehicle"; // -------------------------------------------------------------------------------------------- - typedef std::array< Instance, Limit > Instances; + typedef std::array< Instance, Limit > Instances; + + // -------------------------------------------------------------------------------------------- + typedef std::bitset< Limit > Set; }; /* ------------------------------------------------------------------------------------------------