Ejemplo n.º 1
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
        {
        }
    }
    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
        {
        }
    }
Ejemplo n.º 4
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);
        }
    }
Ejemplo n.º 5
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);
        }
    }
Ejemplo n.º 6
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);
        }
    }
Ejemplo n.º 7
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);
        }
    }
Ejemplo n.º 8
0
    public bool ExecCommand(StorySystem.StoryInstance instance, StorySystem.StoryMessageHandler handler, System.Int64 delta)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_ExecCommand);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(instance);
        LuaFunctionHelper.PushValue(handler);
        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);
        }
    }
Ejemplo n.º 9
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);
        }
    }