- Timestamp:
- Dec 12, 2015, 4:08:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/Players.cs
r251 r253 6 6 namespace AllocsFixes.PersistentData 7 7 { 8 [Serializable] 9 public class Players 10 { 8 [Serializable] 9 public class Players { 11 10 private Dictionary<string, Player> players = new Dictionary<string, Player> (); 12 11 13 12 public Player this [string steamId, bool create] { 14 13 get { 15 if (players.ContainsKey (steamId)) 14 if (players.ContainsKey (steamId)) { 16 15 return players [steamId]; 17 else {16 } else { 18 17 if (create && steamId != null && steamId.Length == 17) { 19 18 Log.Out ("Created new player entry for ID: " + steamId); … … 44 43 // } 45 44 46 public string GetSteamID (string _nameOrId, bool _ignoreColorCodes) 47 { 48 if (_nameOrId == null || _nameOrId.Length == 0) 45 public string GetSteamID (string _nameOrId, bool _ignoreColorCodes) { 46 if (_nameOrId == null || _nameOrId.Length == 0) { 49 47 return null; 48 } 50 49 51 50 long tempLong;
Note:
See TracChangeset
for help on using the changeset viewer.