mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-27 06:57:09 +01:00
Update sqratConst.h
This commit is contained in:
1 parent
a09948770f
commit
a12ba35d53
1 file changed
+14
@@ -222,6 +222,20 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Binds an enumeration value
|
||||
///
|
||||
/// \param name Name of the value as it will appear in Squirrel
|
||||
/// \param val Value to bind
|
||||
///
|
||||
/// \return The Enumeration itself so the call can be chained
|
||||
///
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
virtual Enumeration& Const(const SQChar* name, const long int val) {
|
||||
BindValue<long int>(name, val, false);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Binds an enumeration value
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user