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 |
|
---|
[232] | 10 | public static void GM_SavePlayerData (int _clientId, PlayerDataFile _playerDataFile)
|
---|
[130] | 11 | {
|
---|
| 12 | try {
|
---|
[230] | 13 | ClientInfo ci = ConnectionManager.Instance.GetClient (_clientId);
|
---|
| 14 | PersistentContainer.Instance.Players[ci.playerId].Inventory.Update(_playerDataFile);
|
---|
[130] | 15 | } catch (Exception e) {
|
---|
| 16 | Log.Out ("Error in GM_SavePlayerData: " + e);
|
---|
[103] | 17 | }
|
---|
[93] | 18 | }
|
---|
| 19 |
|
---|
[130] | 20 |
|
---|
[93] | 21 | }
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.