示例#1
0
    static int UpdateProvince(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        ProvinceControl obj = (ProvinceControl)LuaScriptMgr.GetUnityObjectSelf(L, 1, "ProvinceControl");

        obj.UpdateProvince();
        return(0);
    }
示例#2
0
    static int StartTween(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        ProvinceControl obj  = (ProvinceControl)LuaScriptMgr.GetUnityObjectSelf(L, 1, "ProvinceControl");
        LuaFunction     arg0 = LuaScriptMgr.GetLuaFunction(L, 2);
        LuaFunction     arg1 = LuaScriptMgr.GetLuaFunction(L, 3);

        obj.StartTween(arg0, arg1);
        return(0);
    }
示例#3
0
    static int get_province(IntPtr L)
    {
        object          o   = LuaScriptMgr.GetLuaObject(L, 1);
        ProvinceControl obj = (ProvinceControl)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name province");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index province on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.province);
        return(1);
    }
示例#4
0
    static int set_cityStartScale(IntPtr L)
    {
        object          o   = LuaScriptMgr.GetLuaObject(L, 1);
        ProvinceControl obj = (ProvinceControl)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name cityStartScale");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index cityStartScale on a nil value");
            }
        }

        obj.cityStartScale = (float)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
示例#5
0
    static int set_space_1(IntPtr L)
    {
        object          o   = LuaScriptMgr.GetLuaObject(L, 1);
        ProvinceControl obj = (ProvinceControl)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name space_1");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index space_1 on a nil value");
            }
        }

        obj.space_1 = LuaScriptMgr.GetString(L, 3);
        return(0);
    }
示例#6
0
    static int set_cloud(IntPtr L)
    {
        object          o   = LuaScriptMgr.GetLuaObject(L, 1);
        ProvinceControl obj = (ProvinceControl)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name cloud");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index cloud on a nil value");
            }
        }

        obj.cloud = (CloudControl)LuaScriptMgr.GetUnityObject(L, 3, typeof(CloudControl));
        return(0);
    }
示例#7
0
    static int set_province(IntPtr L)
    {
        object          o   = LuaScriptMgr.GetLuaObject(L, 1);
        ProvinceControl obj = (ProvinceControl)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name province");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index province on a nil value");
            }
        }

        obj.province = (ScrollZoomContainer)LuaScriptMgr.GetUnityObject(L, 3, typeof(ScrollZoomContainer));
        return(0);
    }