Beispiel #1
0
        public static Tuple <T, long> ReadTupleTLong <T>(this AssetReader reader)
            where T : IAssetReadable, new()
        {
            T t = new T();

            t.Read(reader);
            long value = reader.ReadInt64();

            return(new Tuple <T, long>(t, value));
        }
Beispiel #2
0
        public static void Read(this IDictionary <string, long> _this, AssetReader reader)
        {
            int count = reader.ReadInt32();

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