Exemplo n.º 1
0
    static int get_QixiSquare(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FightParameter obj = (FightParameter)o;
            ArmySquareInfo ret = obj.QixiSquare;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index QixiSquare on a nil value" : e.Message));
        }
    }
Exemplo n.º 2
0
    static int set_QixiSquare(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FightParameter obj  = (FightParameter)o;
            ArmySquareInfo arg0 = (ArmySquareInfo)ToLua.CheckObject(L, 2, typeof(ArmySquareInfo));
            obj.QixiSquare = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index QixiSquare on a nil value" : e.Message));
        }
    }