static public int get_Values(IntPtr l) { try { StorySystem.StoryValueParams self = (StorySystem.StoryValueParams)checkSelf(l); pushValue(l, true); pushValue(l, self.Values); return(2); } catch (Exception e) { return(error(l, e)); } }
public IStoryValueParam Clone() { StoryValueParams <P> val = new StoryValueParams <P>(); for (int i = 0; i < m_Args.Count; ++i) { IStoryValue <P> arg = m_Args[i]; val.m_Args.Add(arg.Clone()); m_Values.Add(default(P)); } return(val); }
static public int constructor(IntPtr l) { try { StorySystem.StoryValueParams o; o = new StorySystem.StoryValueParams(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int InitFromDsl(IntPtr l) { try { StorySystem.StoryValueParams self = (StorySystem.StoryValueParams)checkSelf(l); Dsl.ISyntaxComponent a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); self.InitFromDsl(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int Evaluate(IntPtr l) { try { StorySystem.StoryValueParams self = (StorySystem.StoryValueParams)checkSelf(l); StorySystem.StoryInstance a1; checkType(l, 2, out a1); System.Object a2; checkType(l, 3, out a2); System.Object[] a3; checkArray(l, 4, out a3); self.Evaluate(a1, a2, a3); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
public bool ExecCommand(StorySystem.StoryInstance instance, StorySystem.StoryMessageHandler handler, StorySystem.StoryValueParams _params, System.Int64 delta) { var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_ExecCommand); LuaFunctionHelper.PushValue(Self); LuaFunctionHelper.PushValue(instance); LuaFunctionHelper.PushValue(handler); LuaFunctionHelper.PushValue(_params); LuaFunctionHelper.PushValue(delta); var end_call_res = LuaFunctionHelper.EndCall(err); if (end_call_res) { LuaFunctionHelper.BeginGetResult(err); bool __cs2lua_ret; LuaFunctionHelper.GetResult(out __cs2lua_ret); LuaFunctionHelper.EndGetResult(); return(__cs2lua_ret); } else { return(false); } }
public void Evaluate(StorySystem.StoryInstance instance, StorySystem.StoryMessageHandler handler, StorySystem.StoryValueParams _params) { var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_Evaluate); LuaFunctionHelper.PushValue(Self); LuaFunctionHelper.PushValue(instance); LuaFunctionHelper.PushValue(handler); LuaFunctionHelper.PushValue(_params); var end_call_res = LuaFunctionHelper.EndCall(err); if (end_call_res) { LuaFunctionHelper.BeginGetResult(err); LuaFunctionHelper.EndGetResult(); } else { } }