source: binary-improvements/7dtd-server-fixes/src/PlayerDataStuff.cs@ 232

Last change on this file since 232 was 232, checked in by alloc, 10 years ago

Fixes

File size: 493 bytes
Line 
1using AllocsFixes.PersistentData;
2using System;
3using System.Collections.Generic;
4
5namespace AllocsFixes
6{
7 public class PlayerDataStuff
8 {
9
10 public static void GM_SavePlayerData (int _clientId, PlayerDataFile _playerDataFile)
11 {
12 try {
13 ClientInfo ci = ConnectionManager.Instance.GetClient (_clientId);
14 PersistentContainer.Instance.Players[ci.playerId].Inventory.Update(_playerDataFile);
15 } catch (Exception e) {
16 Log.Out ("Error in GM_SavePlayerData: " + e);
17 }
18 }
19
20
21 }
22}
Note: See TracBrowser for help on using the repository browser.