1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update entity interfaces to include a typedef to a bitset used by event types.

This commit is contained in:
Sandu Liviu Catalin 2015-10-03 21:53:09 +03:00
parent be323f7b07
commit d5c5ff3289

View File

@ -11,6 +11,7 @@
// ------------------------------------------------------------------------------------------------
#include <array>
#include <bitset>
// ------------------------------------------------------------------------------------------------
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;
};
/* ------------------------------------------------------------------------------------------------