- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs
r273 r325 1 using System; 1 2 using AllocsFixes.PersistentData; 2 using System;3 using System.Collections.Generic;4 using UnityEngine;5 3 6 namespace AllocsFixes 7 { 8 public class AllocsLogFunctions 9 { 10 public static void RequestToSpawnPlayer (ClientInfo _cInfo, int _chunkViewDim, PlayerProfile _playerProfile) 11 { 4 namespace AllocsFixes { 5 public class AllocsLogFunctions { 6 public static void RequestToSpawnPlayer (ClientInfo _cInfo, int _chunkViewDim, PlayerProfile _playerProfile) { 12 7 try { 13 8 Log.Out ("Player connected" + 14 15 16 17 18 9 ", entityid=" + _cInfo.entityId + 10 ", name=" + _cInfo.playerName + 11 ", steamid=" + _cInfo.playerId + 12 ", steamOwner=" + _cInfo.ownerId + 13 ", ip=" + _cInfo.ip 19 14 ); 20 15 21 16 PersistentContainer.Instance.Players [_cInfo.playerId, true].SetOnline (_cInfo); 22 Persistent Data.PersistentContainer.Instance.Save ();17 PersistentContainer.Instance.Save (); 23 18 } catch (Exception e) { 24 19 Log.Out ("Error in AllocsLogFunctions.RequestToSpawnPlayer: " + e); … … 26 21 } 27 22 28 public static void PlayerDisconnected (ClientInfo _cInfo, bool _bShutdown) 29 { 23 public static void PlayerDisconnected (ClientInfo _cInfo, bool _bShutdown) { 30 24 try { 31 25 Player p = PersistentContainer.Instance.Players [_cInfo.playerId, true]; … … 35 29 Log.Out ("Disconnected player not found in client list..."); 36 30 } 37 PersistentData.PersistentContainer.Instance.Save (); 31 32 PersistentContainer.Instance.Save (); 38 33 } catch (Exception e) { 39 34 Log.Out ("Error in AllocsLogFunctions.PlayerDisconnected: " + e);
Note:
See TracChangeset
for help on using the changeset viewer.