コード例 #1
0
 static void OnAllIdentitiesSuccess(ref AllIdentitiesSuccessMsg msg, MyNetworkClient sender)
 {
     Sync.Players.LoadIdentities(msg.Identities);
 }
コード例 #2
0
        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);
        }