コード例 #1
0
 public void CopyFrom(BattleNet.DllPartyEvent partyEvent)
 {
     this.eventName     = MemUtils.StringFromUtf8Ptr(partyEvent.eventName);
     this.eventData     = MemUtils.StringFromUtf8Ptr(partyEvent.eventData);
     this.partyId       = partyEvent.partyId;
     this.otherMemberId = partyEvent.otherMemberId;
     this.errorInfo     = BnetErrorInfo.CreateFromDll(partyEvent.errorInfo);
 }
コード例 #2
0
 public static BnetWhisper CreateFromDll(BattleNet.DllWhisper src)
 {
     return new BnetWhisper { m_speakerId = BnetGameAccountId.CreateFromDll(src.speakerId), m_receiverId = BnetGameAccountId.CreateFromDll(src.receiverId), m_message = MemUtils.StringFromUtf8Ptr(src.message), m_timestampMicrosec = src.timestampMicrosec, m_errorInfo = BnetErrorInfo.CreateFromDll(src.errorInfo) };
 }