Line | |
---|
1 | using AllocsFixes.PersistentData;
|
---|
2 | using System;
|
---|
3 | using System.Collections.Generic;
|
---|
4 |
|
---|
5 | namespace AllocsFixes
|
---|
6 | {
|
---|
7 | public class PlayerDataStuff
|
---|
8 | {
|
---|
9 |
|
---|
10 | public static void GM_SavePlayerData (GameManager manager, int _clientId, PlayerDataFile _playerDataFile)
|
---|
11 | {
|
---|
12 | try {
|
---|
13 | ClientInfo ci = CommonMappingFunctions.GetClientInfoFromClientID(_clientId);
|
---|
14 | string steamId = CommonMappingFunctions.GetSteamID(ci);
|
---|
15 | PersistentContainer.Instance.Players[steamId].Inventory.Update(_playerDataFile);
|
---|
16 | Mods.CallSavePlayerData (_clientId, _playerDataFile);
|
---|
17 | } catch (Exception e) {
|
---|
18 | Log.Out ("Error in GM_SavePlayerData: " + e);
|
---|
19 | }
|
---|
20 | }
|
---|
21 |
|
---|
22 |
|
---|
23 | }
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.