Esempio n. 1
0
        public object Decode(Data.ReplayKeys key, BinaryReader data)
        {
            if (_decoders.TryGetValue(key, out var ctor))
            {
                var length = data.BaseStream.Position;
                var inst   = ctor.Invoke(new object[] { data, this });
                return(inst);
            }

            return(null);
        }
 public KeyDecoderAttribute(Data.ReplayKeys id)
 {
     Id = id;
 }