Example #1
0
 public CollectionMap(Bencodex.Types.Dictionary serialized)
 {
     _dictionary = serialized.ToDictionary(
         kv => kv.Key.ToInteger(),
         kv => kv.Value.ToInteger()
         );
 }
Example #2
0
 public WorldInformation(Bencodex.Types.Dictionary serialized)
 {
     _worlds = serialized.ToDictionary(
         kv => kv.Key.ToInteger(),
         kv => new World((Bencodex.Types.Dictionary)kv.Value)
         );
 }
Example #3
0
 public RankingState(Bencodex.Types.Dictionary bdict) : base(Address)
 {
     _map = bdict.ToDictionary(
         pair => new Address(pair.Key.EncodeAsByteArray()),
         pair => (long)(Bencodex.Types.Integer)pair.Value
         );
 }