static void OnAllIdentitiesSuccess(ref AllIdentitiesSuccessMsg msg, MyNetworkClient sender) { Sync.Players.LoadIdentities(msg.Identities); }
static void OnAllIdentitiesRequest(ref AllIdentitiesRequestMsg msg, MyNetworkClient sender) { var response = new AllIdentitiesSuccessMsg(); response.Identities = Sync.Players.SaveIdentities(); Sync.Layer.SendMessage(ref response, sender.SteamUserId, messageType: MyTransportMessageEnum.Success); }