- Timestamp:
- Aug 30, 2014, 3:47:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/KnownPlayers.cs
r142 r143 4 4 namespace AllocsFixes.PersistentData 5 5 { 6 [Serializable ()]7 public class KnownPlayers : ISerializable6 [Serializable] 7 public class KnownPlayers 8 8 { 9 9 private int entityId; … … 16 16 public KnownPlayers (SerializationInfo info, StreamingContext ctxt) 17 17 { 18 this.entityId = info.GetInt32 ("entityId");19 this.name = info.GetString ("name");18 this.entityId = info.GetInt32 ("entityId"); 19 this.name = info.GetString ("name"); 20 20 } 21 22 public void GetObjectData (SerializationInfo info, StreamingContext context) 23 { 24 info.AddValue("name", this.name); 25 } 26 } 21 } 27 22 } 28 23
Note:
See TracChangeset
for help on using the changeset viewer.