示例#1
0
        public static Tuple <ushort, ushort> ReadTupleUInt16UInt16(this AssetReader reader)
        {
            ushort value1 = reader.ReadUInt16();
            ushort value2 = reader.ReadUInt16();

            return(new Tuple <ushort, ushort>(value1, value2));
        }
示例#2
0
        public static void Read(this IDictionary <string, ushort> _this, AssetReader reader)
        {
            int count = reader.ReadInt32();

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