Update sqratConst.h

This commit is contained in:
Sandu Liviu Catalin committed 2021-02-01 00:26:22 +02:00
1 parent a09948770f
commit a12ba35d53
1 file changed
+14
+14
View File
@@ -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
///