mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-03 17:51:55 +00:00
Add custom entity field support
This commit is contained in:
@ -2,6 +2,15 @@
|
||||
|
||||
namespace gsc
|
||||
{
|
||||
enum classid
|
||||
{
|
||||
entity,
|
||||
hudelem,
|
||||
pathnode,
|
||||
node,
|
||||
count
|
||||
};
|
||||
|
||||
class function_args
|
||||
{
|
||||
public:
|
||||
@ -34,4 +43,11 @@ namespace gsc
|
||||
{
|
||||
void add(const std::string& name, const script_method& func);
|
||||
}
|
||||
|
||||
namespace field
|
||||
{
|
||||
void add(classid classnum, const std::string& name,
|
||||
const std::function<scripting::script_value(unsigned int entnum)>& getter,
|
||||
const std::function<void(unsigned int entnum, const scripting::script_value&)>& setter);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user