- Timestamp:
- Aug 30, 2014, 8:08:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r145 r146 13 13 private string ip; 14 14 private long totalPlayTime; 15 [OptionalField] 16 private DateTime 17 lastOnline; 15 18 private Inventory inventory; 16 19 [NonSerialized] … … 70 73 } 71 74 75 public DateTime LastOnline { 76 get { 77 if (IsOnline) 78 return DateTime.Now; 79 else 80 return lastOnline; 81 } 82 } 83 72 84 public void SetOffline () 73 85 { 74 86 Log.Out ("Player set to offline: " + steamId); 75 87 totalPlayTime += (long)(Time.timeSinceLevelLoad - Entity.CreationTimeSinceLevelLoad); 88 lastOnline = DateTime.Now; 76 89 clientInfo = null; 77 90 }
Note:
See TracChangeset
for help on using the changeset viewer.