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