Ejemplo n.º 1
0
        public static Tuple <T, long> ReadTupleTLong <T>(this AssetStream stream)
            where T : IAssetReadable, new()
        {
            T t = new T();

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

            return(new Tuple <T, long>(t, value));
        }
Ejemplo n.º 2
0
        public static void Read(this IDictionary <string, long> _this, AssetStream stream)
        {
            int count = stream.ReadInt32();

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