Ignore:
Timestamp:
Aug 30, 2014, 3:47:59 PM (10 years ago)
Author:
alloc
Message:

Fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/PersistentData/PersistentContainer.cs

    r142 r143  
    77namespace AllocsFixes.PersistentData
    88{
    9         [Serializable()]
    10         public class PersistentContainer : ISerializable
     9        [Serializable]
     10        public class PersistentContainer
    1111        {
    1212                public Dictionary<string, KnownPlayers> players = new Dictionary<string, KnownPlayers> ();
     
    4949                }
    5050
    51                 public PersistentContainer (SerializationInfo info, StreamingContext ctxt)
    52                 {
    53                         this.players = (Dictionary<string, KnownPlayers>)info.GetValue ("players", typeof(Dictionary<string, KnownPlayers>));
    54                 }
    55 
    56                 public void GetObjectData (SerializationInfo info, StreamingContext context)
    57                 {
    58                         info.AddValue ("players", this.players);
    59                 }
    60 
    6151        }
    6252}
Note: See TracChangeset for help on using the changeset viewer.