Changeset 145 for binary-improvements/7dtd-server-fixes/src/PersistentData
- Timestamp:
- Aug 30, 2014, 6:32:41 PM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src/PersistentData
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/InvItem.cs
r144 r145 12 12 public InvItem (string itemName, int count) 13 13 { 14 this.itemName = itemName; 15 this.count = count; 14 16 } 15 17 } -
binary-improvements/7dtd-server-fixes/src/PersistentData/Inventory.cs
r144 r145 23 23 ProcessInv (bag, pdf.bag); 24 24 ProcessInv (belt, pdf.inventory); 25 Log.Out ("Now: belt: " + belt.Count + " - bag: " + bag.Count);26 25 } 27 26 -
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r144 r145 24 24 public int EntityID { 25 25 get { return entityId; } 26 set { entityId = value; }27 26 } 28 27 29 28 public string Name { 30 29 get { return name; } 31 set { name = value; }32 30 } 33 31 34 32 public string IP { 35 33 get { return ip; } 36 set { ip = value; }37 34 } 38 35 -
binary-improvements/7dtd-server-fixes/src/PersistentData/Players.cs
r144 r145 47 47 } 48 48 } 49 } 49 50 50 _nameOrId = _nameOrId.ToLower (); 51 foreach (KeyValuePair<string, Player> kvp in players) { 52 string name = kvp.Value.Name.ToLower (); 53 if (_ignoreColorCodes) { 54 name = Regex.Replace (name, "\\[[0-9a-fA-F]{6}\\]", ""); 55 } 56 if (kvp.Value.IsOnline && kvp.Value.Name.Equals (name)) { 57 return kvp.Key; 58 } 51 _nameOrId = _nameOrId.ToLower (); 52 foreach (KeyValuePair<string, Player> kvp in players) { 53 string name = kvp.Value.Name.ToLower (); 54 if (_ignoreColorCodes) { 55 name = Regex.Replace (name, "\\[[0-9a-fA-F]{6}\\]", ""); 56 } 57 if (kvp.Value.IsOnline && name.Equals (_nameOrId)) { 58 return kvp.Key; 59 59 } 60 60 }
Note:
See TracChangeset
for help on using the changeset viewer.