mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-19 02:37:18 +02:00
Update entity interfaces to include a typedef to a bitset used by event types.
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <bitset>
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
namespace SqMod {
|
namespace SqMod {
|
||||||
@@ -123,7 +124,10 @@ public:
|
|||||||
static constexpr const SQChar* CName = "CBlip";
|
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";
|
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";
|
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";
|
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";
|
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";
|
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";
|
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";
|
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";
|
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";
|
static constexpr const SQChar* CName = "CVehicle";
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
typedef std::array< Instance, Limit > Instances;
|
typedef std::array< Instance, Limit > Instances;
|
||||||
|
|
||||||
|
// --------------------------------------------------------------------------------------------
|
||||||
|
typedef std::bitset< Limit > Set;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user