Example #1
0
    public bool ExecCommandWithArgs(StorySystem.StoryInstance instance, StorySystem.StoryMessageHandler handler, System.Int64 delta, System.Object iterator, params object[] args)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_ExecCommandWithArgs);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(instance);
        LuaFunctionHelper.PushValue(handler);
        LuaFunctionHelper.PushValue(delta);
        LuaFunctionHelper.PushValue(iterator);
        LuaFunctionHelper.PushParams(args);
        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);
        }
    }
Example #2
0
    public void ResetState()
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_ResetState);

        LuaFunctionHelper.PushValue(Self);
        var end_call_res = LuaFunctionHelper.EndCall(err);

        if (end_call_res)
        {
            LuaFunctionHelper.BeginGetResult(err);
            LuaFunctionHelper.EndGetResult();
        }
        else
        {
        }
    }
Example #3
0
    public void LoadStatementData(Dsl.StatementData statementData)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_LoadStatementData);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(statementData);
        var end_call_res = LuaFunctionHelper.EndCall(err);

        if (end_call_res)
        {
            LuaFunctionHelper.BeginGetResult(err);
            LuaFunctionHelper.EndGetResult();
        }
        else
        {
        }
    }
Example #4
0
    public void SetCalculator(GameFramework.AttrCalc.DslCalculator calc)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_SetCalculator);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(calc);
        var end_call_res = LuaFunctionHelper.EndCall(err);

        if (end_call_res)
        {
            LuaFunctionHelper.BeginGetResult(err);
            LuaFunctionHelper.EndGetResult();
        }
        else
        {
        }
    }
    public void SetProxy(StorySystem.StoryValueResult result)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_SetProxy);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(result);
        var end_call_res = LuaFunctionHelper.EndCall(err);

        if (end_call_res)
        {
            LuaFunctionHelper.BeginGetResult(err);
            LuaFunctionHelper.EndGetResult();
        }
        else
        {
        }
    }
    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
        {
        }
    }
Example #7
0
    public bool IsCompositeCommand()
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_IsCompositeCommand);

        LuaFunctionHelper.PushValue(Self);
        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);
        }
    }
Example #8
0
    public object Clone()
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_Clone);

        LuaFunctionHelper.PushValue(Self);
        var end_call_res = LuaFunctionHelper.EndCall(err);

        if (end_call_res)
        {
            LuaFunctionHelper.BeginGetResult(err);
            object __cs2lua_ret;
            LuaFunctionHelper.GetResult(out __cs2lua_ret);
            LuaFunctionHelper.EndGetResult();
            return(__cs2lua_ret);
        }
        else
        {
            return(null);
        }
    }
Example #9
0
    public bool LoadExpressions(GameFramework.AttrCalc.AttrExpressionList exps)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_LoadExpressions);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(exps);
        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);
        }
    }
Example #10
0
    public bool LoadCallData(Dsl.FunctionData callData)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_LoadCallData);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(callData);
        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);
        }
    }
Example #11
0
    public System.Int64 Calc(GameFramework.SceneContextInfo context, GameFramework.CharacterProperty source, GameFramework.CharacterProperty target, params System.Int64[] args)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_Calc);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(context);
        LuaFunctionHelper.PushValue(source);
        LuaFunctionHelper.PushValue(target);
        LuaFunctionHelper.PushParams(args);
        var end_call_res = LuaFunctionHelper.EndCall(err);

        if (end_call_res)
        {
            LuaFunctionHelper.BeginGetResult(err);
            System.Int64 __cs2lua_ret;
            LuaFunctionHelper.GetResult(out __cs2lua_ret);
            LuaFunctionHelper.EndGetResult();
            return(__cs2lua_ret);
        }
        else
        {
            return((System.Int64) 0);
        }
    }