Esempio n. 1
0
    static int set_id(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CityLand obj  = (CityLand)o;
            short    arg0 = (short)LuaDLL.luaL_checknumber(L, 2);
            obj.id = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index id on a nil value" : e.Message));
        }
    }
Esempio n. 2
0
    static int get_buildingkinds(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CityLand obj = (CityLand)o;
            short[]  ret = obj.buildingkinds;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index buildingkinds on a nil value" : e.Message));
        }
    }
Esempio n. 3
0
    static int get_offset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CityLand obj = (CityLand)o;
            short    ret = obj.offset;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index offset on a nil value" : e.Message));
        }
    }
Esempio n. 4
0
    static int set_buildingkinds(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CityLand obj  = (CityLand)o;
            short[]  arg0 = ToLua.CheckNumberArray <short>(L, 2);
            obj.buildingkinds = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index buildingkinds on a nil value" : e.Message));
        }
    }