Scorpio.Script.CreateFunction C# (CSharp) Method

CreateFunction() public method

public CreateFunction ( ScorpioHandle value ) : ScriptFunction
value ScorpioHandle
return ScriptFunction
        public ScriptFunction CreateFunction(ScorpioHandle value) {
            return new ScriptHandleFunction(this, value);
        }
        public ScriptUserdata GetEnum(Type type) {

Usage Example

 public static void Load(Script script)
 {
     ScriptTable Table = script.CreateTable();
     Table.SetValue("encode", script.CreateFunction(new encode()));
     Table.SetValue("decode", script.CreateFunction(new decode(script)));
     script.SetObjectInternal("json", Table);
 }
All Usage Examples Of Scorpio.Script::CreateFunction