package de.fruitfly.ovr.enums;

public enum EyeType
{
    ovrEye_Left(0),
    ovrEye_Right(1),
    ovrEye_Count(2);

    private final int eyeTypeEnum;

    private EyeType(int value)
    {
        this.eyeTypeEnum = value;
    }

    public int value()
    {
        return this.eyeTypeEnum;
    }

    public static EyeType fromInteger(int x) {
        switch(x) {
            case 0:
                return ovrEye_Left;
            case 1:
                return ovrEye_Right;
        }
        return ovrEye_Count;
    }

    public static String toString(EyeType type)
    {
        switch(type)
        {
            case ovrEye_Left:
                return "ovrEye_Left";
            case ovrEye_Right:
                return "ovrEye_Right";
        }

        return "ovrEye_Count";
    }
}

@@ -47,16 +47,39 @@
 eType%0A%7B%0A
+    ovrEye_Center(-1),%0A
     ovrE
@@ -90,16 +90,16 @@
 eft(0),%0A
-
     ovrE
@@ -379,24 +379,83 @@
 switch(x) %7B%0A
+            case -1:%0A                return ovrEye_Center;%0A
             
@@ -672,24 +672,24 @@
 witch(type)%0A
-
         %7B%0A  
@@ -682,24 +682,96 @@
 )%0A        %7B%0A
+            case ovrEye_Center:%0A                return %22ovrEye_Center%22;%0A
             

Allow eyetype of 'center' (yes, cyclops?)