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

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