Exemple #1
0
    public static int AddDefiniteGroupRandomEventGroup(IntPtr l)
    {
        int result;

        try
        {
            DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l);
            RandomEventGroup      newGroup;
            LuaObject.checkType <RandomEventGroup>(l, 2, out newGroup);
            dataSecionRandomEvent.AddDefiniteGroupRandomEventGroup(newGroup);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }