static int Reset(ILuaState L)
    {
        L.ChkArgsCount(1);
        IEnumerator obj = (IEnumerator)L.ChkUserDataSelf(1, "IEnumerator");

        obj.Reset();
        return(0);
    }
    static int Clear(ILuaState L)
    {
        L.ChkArgsCount(1);
        IList obj = (IList)L.ChkUserDataSelf(1, "IList");

        obj.Clear();
        return(0);
    }
    static int Normalize(ILuaState L)
    {
        L.ChkArgsCount(1);
        Vector2 obj = L.ToVector2(1);

        obj.Normalize();
        SetVector2(L, 1, obj.x, obj.y);
        return(0);
    }
    static int MoveNext(ILuaState L)
    {
        L.ChkArgsCount(1);
        IEnumerator obj = (IEnumerator)L.ChkUserDataSelf(1, "IEnumerator");
        bool        o   = obj.MoveNext();

        L.PushBoolean(o);
        return(1);
    }
    static int SqrMagnitude(ILuaState L)
    {
        L.ChkArgsCount(1);
        Vector2 obj = L.ToVector2(1);
        float   o   = obj.SqrMagnitude();

        L.PushNumber(o);
        return(1);
    }
    static int Remove(ILuaState L)
    {
        L.ChkArgsCount(2);
        IList  obj  = (IList)L.ChkUserDataSelf(1, "IList");
        object arg0 = L.ToAnyObject(2);

        obj.Remove(arg0);
        return(0);
    }
    static int RemoveAt(ILuaState L)
    {
        L.ChkArgsCount(2);
        IList obj  = (IList)L.ChkUserDataSelf(1, "IList");
        var   arg0 = (int)L.ChkNumber(2);

        obj.RemoveAt(arg0);
        return(0);
    }
Example #8
0
    static int SqrMagnitude(ILuaState L)
    {
        L.ChkArgsCount(1);
        Vector3 arg0 = L.ToVector3(1);
        float   o    = Vector3.SqrMagnitude(arg0);

        L.PushNumber(o);
        return(1);
    }
Example #9
0
    static int Normalize(ILuaState L)
    {
        L.ChkArgsCount(1);
        Vector3 obj = (Vector3)L.ChkUserDataSelf(1, "Vector3");

        obj.Normalize();
        SetVector3(L, 1, obj.x, obj.y, obj.z);
        return(0);
    }
Example #10
0
    static int Lua_Neg(ILuaState L)
    {
        L.ChkArgsCount(1);
        Vector3 arg0 = L.ToVector3(1);
        Vector3 o    = -arg0;

        L.PushUData(o);
        return(1);
    }
    static int Inverse(ILuaState L)
    {
        L.ChkArgsCount(1);
        Quaternion arg0 = L.ToQuaternion(1);
        Quaternion o    = Quaternion.Inverse(arg0);

        L.PushUData(o);
        return(1);
    }
    static int Insert(ILuaState L)
    {
        L.ChkArgsCount(3);
        IList  obj  = (IList)L.ChkUserDataSelf(1, "IList");
        var    arg0 = (int)L.ChkNumber(2);
        object arg1 = L.ToAnyObject(3);

        obj.Insert(arg0, arg1);
        return(0);
    }
    static int IndexOf(ILuaState L)
    {
        L.ChkArgsCount(2);
        IList  obj  = (IList)L.ChkUserDataSelf(1, "IList");
        object arg0 = L.ToAnyObject(2);
        int    o    = obj.IndexOf(arg0);

        L.PushInteger(o);
        return(1);
    }
    static int Lua_Eq(ILuaState L)
    {
        L.ChkArgsCount(2);
        Quaternion arg0 = L.ToQuaternion(1);
        Quaternion arg1 = L.ToQuaternion(2);
        bool       o    = arg0 == arg1;

        L.PushBoolean(o);
        return(1);
    }
Example #15
0
    static int Distance(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 arg0 = L.ToVector3(1);
        Vector3 arg1 = L.ToVector3(2);
        float   o    = Vector3.Distance(arg0, arg1);

        L.PushNumber(o);
        return(1);
    }
    static int AngleAxis(ILuaState L)
    {
        L.ChkArgsCount(2);
        var        arg0 = (float)L.ChkNumber(1);
        Vector3    arg1 = L.ToVector3(2);
        Quaternion o    = Quaternion.AngleAxis(arg0, arg1);

        L.PushUData(o);
        return(1);
    }
Example #17
0
    static int Lua_Sub(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 arg0 = L.ToVector3(1);
        Vector3 arg1 = L.ToVector3(2);
        Vector3 o    = arg0 - arg1;

        L.PushUData(o);
        return(1);
    }
Example #18
0
    static int Max(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 arg0 = L.ToVector3(1);
        Vector3 arg1 = L.ToVector3(2);
        Vector3 o    = Vector3.Max(arg0, arg1);

        L.PushUData(o);
        return(1);
    }
Example #19
0
    static int ClampMagnitude(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 arg0 = L.ToVector3(1);
        var     arg1 = (float)L.ChkNumber(2);
        Vector3 o    = Vector3.ClampMagnitude(arg0, arg1);

        L.PushUData(o);
        return(1);
    }
    static int Lua_Div(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector2 arg0 = L.ToVector2(1);
        var     arg1 = (float)L.ChkNumber(2);
        Vector2 o    = arg0 / arg1;

        L.PushUData(o);
        return(1);
    }
Example #21
0
    static int Lua_Div(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 arg0 = L.ToVector3(1);
        var     arg1 = (float)L.ChkNumber(2);
        Vector3 o    = arg0 / arg1;

        L.PushLightUserData(o);
        return(1);
    }
Example #22
0
    static int ProjectOnPlane(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 arg0 = L.ToVector3(1);
        Vector3 arg1 = L.ToVector3(2);
        Vector3 o    = Vector3.ProjectOnPlane(arg0, arg1);

        L.PushUData(o);
        return(1);
    }
    static int FromToRotation(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3    arg0 = L.ToVector3(1);
        Vector3    arg1 = L.ToVector3(2);
        Quaternion o    = Quaternion.FromToRotation(arg0, arg1);

        L.PushUData(o);
        return(1);
    }
Example #24
0
    static int Lua_Eq(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 arg0 = L.ToVector3(1);
        Vector3 arg1 = L.ToVector3(2);
        bool    o    = arg0 == arg1;

        L.PushBoolean(o);
        return(1);
    }
    static int Angle(ILuaState L)
    {
        L.ChkArgsCount(2);
        Quaternion arg0 = L.ToQuaternion(1);
        Quaternion arg1 = L.ToQuaternion(2);
        float      o    = Quaternion.Angle(arg0, arg1);

        L.PushNumber(o);
        return(1);
    }
Example #26
0
    static int Lua_Div(ILuaState L)
    {
        L.ChkArgsCount(2);
        Color arg0 = L.ToColor(1);
        var   arg1 = (float)L.ChkNumber(2);
        Color o    = arg0 / arg1;

        L.PushUData(o);
        return(1);
    }
Example #27
0
    static int Lua_Sub(ILuaState L)
    {
        L.ChkArgsCount(2);
        Color arg0 = L.ToColor(1);
        Color arg1 = L.ToColor(2);
        Color o    = arg0 - arg1;

        L.PushUData(o);
        return(1);
    }
Example #28
0
    static int Scale(ILuaState L)
    {
        L.ChkArgsCount(2);
        Vector3 obj  = L.ToVector3(1);
        Vector3 arg0 = L.ToVector3(2);

        obj.Scale(arg0);
        SetVector3(L, 1, obj.x, obj.y, obj.z);
        return(0);
    }
Example #29
0
    static int Lua_Eq(ILuaState L)
    {
        L.ChkArgsCount(2);
        Color arg0 = L.ToColor(1);
        Color arg1 = L.ToColor(2);
        bool  o    = arg0 == arg1;

        L.PushBoolean(o);
        return(1);
    }
    static int Contains(ILuaState L)
    {
        L.ChkArgsCount(2);
        IList  obj  = (IList)L.ChkUserDataSelf(1, "IList");
        object arg0 = L.ToAnyObject(2);
        bool   o    = obj.Contains(arg0);

        L.PushBoolean(o);
        return(1);
    }