Beispiel #1
0
        public static void readProperty(this TezReader reader, TezValueWrapper vw)
        {
            switch (vw.valueType)
            {
            case TezValueType.Bool:
            {
                var result = (TezValueWrapper <bool>)vw;
                result.value = reader.readBool(result.name);
                break;
            }

            case TezValueType.Int:
            {
                var result = (TezValueWrapper <int>)vw;
                result.value = reader.readInt(result.name);
                break;
            }

            case TezValueType.Float:
            {
                var result = (TezValueWrapper <float>)vw;
                result.value = reader.readFloat(result.name);
                break;
            }

            case TezValueType.Double:
                break;

            case TezValueType.String:
            {
                var result = (TezValueWrapper <string>)vw;
                result.value = reader.readString(result.name);
                break;
            }

            case TezValueType.Class:
                break;

            case TezValueType.StaticString:
                break;

            case TezValueType.Type:
                break;

            case TezValueType.Unknown:
                break;

            default:
                break;
            }
        }