Exemplo n.º 1
0
    static int AdjustOffset(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        CHUDFollowTarget obj  = (CHUDFollowTarget)LuaScriptMgr.GetUnityObjectSelf(L, 1, "CHUDFollowTarget");
        GameObject       arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
        float            arg1 = (float)LuaScriptMgr.GetNumber(L, 3);

        obj.AdjustOffset(arg0, arg1);
        return(0);
    }
Exemplo n.º 2
0
    static int get_Offset(IntPtr L)
    {
        object           o   = LuaScriptMgr.GetLuaObject(L, 1);
        CHUDFollowTarget obj = (CHUDFollowTarget)o;

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

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

        LuaScriptMgr.Push(L, obj.Offset);
        return(1);
    }
Exemplo n.º 3
0
    static int set_PreferScale(IntPtr L)
    {
        object           o   = LuaScriptMgr.GetLuaObject(L, 1);
        CHUDFollowTarget obj = (CHUDFollowTarget)o;

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

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

        obj.PreferScale = LuaScriptMgr.GetVector3(L, 3);
        return(0);
    }
Exemplo n.º 4
0
    static int set_FollowTarget(IntPtr L)
    {
        object           o   = LuaScriptMgr.GetLuaObject(L, 1);
        CHUDFollowTarget obj = (CHUDFollowTarget)o;

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

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

        obj.FollowTarget = (GameObject)LuaScriptMgr.GetUnityObject(L, 3, typeof(GameObject));
        return(0);
    }