Exemplo n.º 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);
        }
    }
Exemplo n.º 2
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);
        }
    }
Exemplo n.º 3
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);
        }
    }
Exemplo n.º 4
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);
        }
    }
Exemplo n.º 5
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);
        }
    }
Exemplo n.º 6
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);
        }
    }