Exemplo n.º 1
0
    public static int StopCoroutine(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2))
        {
            UnityEngine.MonoBehaviour      arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.Collections.IEnumerator arg1 = (System.Collections.IEnumerator)LuaCallback.ToObject(L, 2);
            arg0.StopCoroutine(arg1);

            return(0);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            UnityEngine.Coroutine     arg1 = (UnityEngine.Coroutine)LuaCallback.ToObject(L, 2);
            arg0.StopCoroutine(arg1);

            return(0);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.String             arg1 = (System.String)LuaCallback.ToString(L, 2);
            arg0.StopCoroutine(arg1);

            return(0);
        }
        return(0);
    }
Exemplo n.º 2
0
    public static int StartCoroutine(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.String             arg1 = (System.String)LuaCallback.ToString(L, 2);
            UnityEngine.Coroutine     res  = arg0.StartCoroutine(arg1);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2) && LuaAPI.IsObject(L, 3))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.String             arg1 = (System.String)LuaCallback.ToString(L, 2);
            System.Object             arg2 = (System.Object)LuaCallback.ToObject(L, 3);
            UnityEngine.Coroutine     res  = arg0.StartCoroutine(arg1, arg2);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2))
        {
            UnityEngine.MonoBehaviour      arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.Collections.IEnumerator arg1 = (System.Collections.IEnumerator)LuaCallback.ToObject(L, 2);
            UnityEngine.Coroutine          res  = arg0.StartCoroutine(arg1);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 3
0
    public static int GetHashCode(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            System.Int32       res  = arg0.GetHashCode();
            LuaCallback.PushNumber(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 4
0
    public static int ToString(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            System.String      res  = arg0.ToString();
            LuaCallback.PushString(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 5
0
    public static int FindObjectOfType(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsNumber(L, 1))
        {
            System.Type        arg0 = (System.Type)LuaCallback.ToType(L, 1);
            UnityEngine.Object res  = UnityEngine.Object.FindObjectOfType(arg0);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 6
0
    public static int DontDestroyOnLoad(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Object.DontDestroyOnLoad(arg0);

            return(0);
        }
        return(0);
    }
Exemplo n.º 7
0
    public static int print(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            System.Object arg0 = (System.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.MonoBehaviour.print(arg0);

            return(0);
        }
        return(0);
    }
Exemplo n.º 8
0
    public static int DetachChildren(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            arg0.DetachChildren();

            return(0);
        }
        return(0);
    }
Exemplo n.º 9
0
    public static int GetSiblingIndex(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            System.Int32          res  = arg0.GetSiblingIndex();
            LuaCallback.PushNumber(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 10
0
    public static int GetEnumerator(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Transform          arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            System.Collections.IEnumerator res  = arg0.GetEnumerator();
            LuaCallback.PushObject(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 11
0
    public static int SetAsLastSibling(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            arg0.SetAsLastSibling();

            return(0);
        }
        return(0);
    }
Exemplo n.º 12
0
    public static int StopAllCoroutines(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            arg0.StopAllCoroutines();

            return(0);
        }
        return(0);
    }
Exemplo n.º 13
0
    public static int IsChildOf(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            UnityEngine.Transform arg1 = (UnityEngine.Transform)LuaCallback.ToObject(L, 2);
            System.Boolean        res  = arg0.IsChildOf(arg1);
            LuaCallback.PushBool(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 14
0
    public static int CompareTag(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.Component arg0 = (UnityEngine.Component)LuaCallback.ToObject(L, 1);
            System.String         arg1 = (System.String)LuaCallback.ToString(L, 2);
            System.Boolean        res  = arg0.CompareTag(arg1);
            LuaCallback.PushBool(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 15
0
    public static int GetChild(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            System.Int32          arg1 = (System.Int32)LuaCallback.ToNumber(L, 2);
            UnityEngine.Transform res  = arg0.GetChild(arg1);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 16
0
    public static int Equals(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            System.Object      arg1 = (System.Object)LuaCallback.ToObject(L, 2);
            System.Boolean     res  = arg0.Equals(arg1);
            LuaCallback.PushBool(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 17
0
    public static int Find(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            System.String         arg1 = (System.String)LuaCallback.ToString(L, 2);
            UnityEngine.Transform res  = arg0.Find(arg1);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 18
0
    public static int SetSiblingIndex(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            System.Int32          arg1 = (System.Int32)LuaCallback.ToNumber(L, 2);
            arg0.SetSiblingIndex(arg1);

            return(0);
        }
        return(0);
    }
Exemplo n.º 19
0
    public static int GetComponentInParent(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2))
        {
            UnityEngine.Component arg0 = (UnityEngine.Component)LuaCallback.ToObject(L, 1);
            System.Type           arg1 = (System.Type)LuaCallback.ToType(L, 2);
            UnityEngine.Component res  = arg0.GetComponentInParent(arg1);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 20
0
    public static int Instantiate(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2) && LuaAPI.IsVector4(L, 3))
        {
            UnityEngine.Object     arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Vector3    arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2);
            UnityEngine.Quaternion arg2 = (UnityEngine.Quaternion)LuaCallback.ToQuaternion(L, 3);
            UnityEngine.Object     res  = UnityEngine.Object.Instantiate(arg0, arg1, arg2);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        if (nargs == 4 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2) && LuaAPI.IsVector4(L, 3) && LuaAPI.IsObject(L, 4))
        {
            UnityEngine.Object     arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Vector3    arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2);
            UnityEngine.Quaternion arg2 = (UnityEngine.Quaternion)LuaCallback.ToQuaternion(L, 3);
            UnityEngine.Transform  arg3 = (UnityEngine.Transform)LuaCallback.ToObject(L, 4);
            UnityEngine.Object     res  = UnityEngine.Object.Instantiate(arg0, arg1, arg2, arg3);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Object res  = UnityEngine.Object.Instantiate(arg0);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2))
        {
            UnityEngine.Object    arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Transform arg1 = (UnityEngine.Transform)LuaCallback.ToObject(L, 2);
            UnityEngine.Object    res  = UnityEngine.Object.Instantiate(arg0, arg1);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2) && LuaAPI.IsBool(L, 3))
        {
            UnityEngine.Object    arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Transform arg1 = (UnityEngine.Transform)LuaCallback.ToObject(L, 2);
            System.Boolean        arg2 = (System.Boolean)LuaCallback.ToBool(L, 3);
            UnityEngine.Object    res  = UnityEngine.Object.Instantiate(arg0, arg1, arg2);
            LuaCallback.PushObject(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 21
0
    public static int SetPositionAndRotation(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2) && LuaAPI.IsVector4(L, 3))
        {
            UnityEngine.Transform  arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            UnityEngine.Vector3    arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2);
            UnityEngine.Quaternion arg2 = (UnityEngine.Quaternion)LuaCallback.ToQuaternion(L, 3);
            arg0.SetPositionAndRotation(arg1, arg2);

            return(0);
        }
        return(0);
    }
Exemplo n.º 22
0
    public static int Invoke(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2) && LuaAPI.IsNumber(L, 3))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.String             arg1 = (System.String)LuaCallback.ToString(L, 2);
            System.Single             arg2 = (System.Single)LuaCallback.ToNumber(L, 3);
            arg0.Invoke(arg1, arg2);

            return(0);
        }
        return(0);
    }
Exemplo n.º 23
0
    public static int Add(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2) && LuaAPI.IsNumber(L, 3))
        {
            HotFix       arg0 = (HotFix)LuaCallback.ToObject(L, 1);
            System.Int32 arg1 = (System.Int32)LuaCallback.ToNumber(L, 2);
            System.Int32 arg2 = (System.Int32)LuaCallback.ToNumber(L, 3);
            System.Int32 res  = arg0.Add(arg1, arg2);
            LuaCallback.PushNumber(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 24
0
    public static int RotateAround(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 4 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2) && LuaAPI.IsVector3(L, 3) && LuaAPI.IsNumber(L, 4))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            UnityEngine.Vector3   arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2);
            UnityEngine.Vector3   arg2 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 3);
            System.Single         arg3 = (System.Single)LuaCallback.ToNumber(L, 4);
            arg0.RotateAround(arg1, arg2, arg3);

            return(0);
        }
        return(0);
    }
Exemplo n.º 25
0
    public static int Print(IntPtr L)
    {
        int    nargs = LuaAPI.GetTop(L);
        string s     = "LUA: ";

        for (int i = 1; i <= nargs; i++)
        {
            if (LuaAPI.IsString(L, i))
            {
                s += LuaAPI.ToStr(L, i);
                if (i != nargs)
                {
                    s += "\t";
                }
            }
        }
        Debug.Log(s);
        return(0);
    }
Exemplo n.º 26
0
    public static int BroadcastMessage(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 4 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2) && LuaAPI.IsObject(L, 3) && LuaAPI.IsNumber(L, 4))
        {
            UnityEngine.Component          arg0 = (UnityEngine.Component)LuaCallback.ToObject(L, 1);
            System.String                  arg1 = (System.String)LuaCallback.ToString(L, 2);
            System.Object                  arg2 = (System.Object)LuaCallback.ToObject(L, 3);
            UnityEngine.SendMessageOptions arg3 = (UnityEngine.SendMessageOptions)LuaCallback.ToNumber(L, 4);
            arg0.BroadcastMessage(arg1, arg2, arg3);

            return(0);
        }
        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2) && LuaAPI.IsObject(L, 3))
        {
            UnityEngine.Component arg0 = (UnityEngine.Component)LuaCallback.ToObject(L, 1);
            System.String         arg1 = (System.String)LuaCallback.ToString(L, 2);
            System.Object         arg2 = (System.Object)LuaCallback.ToObject(L, 3);
            arg0.BroadcastMessage(arg1, arg2);

            return(0);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.Component arg0 = (UnityEngine.Component)LuaCallback.ToObject(L, 1);
            System.String         arg1 = (System.String)LuaCallback.ToString(L, 2);
            arg0.BroadcastMessage(arg1);

            return(0);
        }
        if (nargs == 3 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2) && LuaAPI.IsNumber(L, 3))
        {
            UnityEngine.Component          arg0 = (UnityEngine.Component)LuaCallback.ToObject(L, 1);
            System.String                  arg1 = (System.String)LuaCallback.ToString(L, 2);
            UnityEngine.SendMessageOptions arg2 = (UnityEngine.SendMessageOptions)LuaCallback.ToNumber(L, 3);
            arg0.BroadcastMessage(arg1, arg2);

            return(0);
        }
        return(0);
    }
Exemplo n.º 27
0
    public static int CancelInvoke(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            arg0.CancelInvoke();

            return(0);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.String             arg1 = (System.String)LuaCallback.ToString(L, 2);
            arg0.CancelInvoke(arg1);

            return(0);
        }
        return(0);
    }
Exemplo n.º 28
0
    public static int IsInvoking(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.Boolean            res  = arg0.IsInvoking();
            LuaCallback.PushBool(L, res);
            return(1);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.String             arg1 = (System.String)LuaCallback.ToString(L, 2);
            System.Boolean            res  = arg0.IsInvoking(arg1);
            LuaCallback.PushBool(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 29
0
    public static int DestroyImmediate(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsBool(L, 2))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            System.Boolean     arg1 = (System.Boolean)LuaCallback.ToBool(L, 2);
            UnityEngine.Object.DestroyImmediate(arg0, arg1);

            return(0);
        }
        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Object.DestroyImmediate(arg0);

            return(0);
        }
        return(0);
    }
Exemplo n.º 30
0
    public static int Destroy(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            System.Single      arg1 = (System.Single)LuaCallback.ToNumber(L, 2);
            UnityEngine.Object.Destroy(arg0, arg1);

            return(0);
        }
        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            UnityEngine.Object.Destroy(arg0);

            return(0);
        }
        return(0);
    }