@@ -0,0 +1,1030 @@
+package com.nucleus.types;%0A%0A/**%0A * Identifier for different type of datatypes, can be used when importing/exporting to know the expected datatype.%0A * %0A * @author Richard Sahlin%0A *%0A */%0Apublic enum DataType %7B%0A%0A    INT(0, 4),%0A    FLOAT(1, 4),%0A    SHORT(2, 2),%0A    STRING(3, 0),%0A    INT_ARRAY(4, 4),%0A    FLOAT_ARRAY(5, 4),%0A    SHORT_ARRAY(6, 2),%0A    STRING_ARRAY(7, 0),%0A    RESOLUTION(8, 0),%0A    TEXTURE_PARAMETER(9, 0);%0A%0A    private final int type;%0A    private final int size;%0A%0A    private DataType(int type, int size) %7B%0A        this.type = type;%0A        this.size = size;%0A    %7D%0A%0A    /**%0A     * Returns the identifier for the datatype, this can be used when importing or exporting to know the expected%0A     * datatype.%0A     * %0A     * @return%0A     */%0A    public int getType() %7B%0A        return type;%0A    %7D%0A%0A    /**%0A     * Returns the size, in bytes, of the internal datatype. INT = 4 bytes.%0A     * For variable size datatypes this has no meaning.%0A     * %0A     * @return%0A     */%0A    public int getSize() %7B%0A        return size;%0A    %7D%0A%0A%7D%0A

Add DataType enum for import/export datatypes