Beispiel #1
0
        public static Tuple <char, char> ReadTupleCharChar(this AssetReader reader)
        {
            char value1 = Convert.ToChar(reader.ReadByte());
            char value2 = Convert.ToChar(reader.ReadByte());

            return(new Tuple <char, char>(value1, value2));
        }
Beispiel #2
0
        public static Tuple <byte, byte> ReadTupleByteByte(this AssetReader reader)
        {
            byte value1 = reader.ReadByte();
            byte value2 = reader.ReadByte();

            return(new Tuple <byte, byte>(value1, value2));
        }
Beispiel #3
0
        public static Tuple <byte, float> ReadTupleByteSingle(this AssetReader reader)
        {
            byte  value1 = reader.ReadByte();
            float value2 = reader.ReadSingle();

            return(new Tuple <byte, float>(value1, value2));
        }
Beispiel #4
0
        public static Tuple <char, float> ReadTupleCharSingle(this AssetReader reader)
        {
            char  value1 = Convert.ToChar(reader.ReadByte());
            float value2 = reader.ReadSingle();

            return(new Tuple <char, float>(value1, value2));
        }
Beispiel #5
0
        public static void Read(this IDictionary <string, byte> _this, AssetReader reader)
        {
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                string key   = reader.ReadStringAligned();
                byte   value = reader.ReadByte();
                _this.Add(key, value);
            }
        }