public static BnetGameAccountId CreateFromDll(BattleNet.DllEntityId src) { BnetGameAccountId id = new BnetGameAccountId(); id.CopyFrom(src); return(id); }
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); }
public void CopyFrom(BattleNet.DllPresenceUpdate update) { this.entityId = update.entityId; this.programId = update.programId; this.groupId = update.groupId; this.fieldId = update.fieldId; this.index = update.index; this.boolVal = update.boolVal; this.intVal = update.intVal; this.stringVal = MemUtils.StringFromUtf8Ptr(update.stringVal); this.entityIdVal = update.entityIdVal; this.blobVal = MemUtils.PtrToBytes(update.blobVal, update.blobValSize); this.valCleared = update.valCleared; }
private void RequestPlayerPresence() { BattleNet.DllEntityId entityId = new BattleNet.DllEntityId { hi = this.m_gameAccountId.GetHi(), lo = this.m_gameAccountId.GetLo() }; List <BattleNet.DllPresenceFieldKey> list = new List <BattleNet.DllPresenceFieldKey>(); BattleNet.DllPresenceFieldKey item = new BattleNet.DllPresenceFieldKey { programId = BnetProgramId.BNET.GetValue(), groupId = 2, fieldId = 7, index = 0L }; list.Add(item); item.programId = BnetProgramId.BNET.GetValue(); item.groupId = 2; item.fieldId = 3; item.index = 0L; list.Add(item); item.programId = BnetProgramId.BNET.GetValue(); item.groupId = 2; item.fieldId = 5; item.index = 0L; list.Add(item); if (GameUtils.ShouldShowRankedMedals()) { BattleNet.DllPresenceFieldKey key2 = new BattleNet.DllPresenceFieldKey { programId = BnetProgramId.HEARTHSTONE.GetValue(), groupId = 2, fieldId = 0x12, index = 0L }; list.Add(key2); } BattleNet.DllPresenceFieldKey[] fieldList = list.ToArray(); BattleNet.RequestPresenceFields(true, entityId, fieldList); }
public static PartyId FromEntityId(BattleNet.DllEntityId entityId) { return(new PartyId(entityId)); }
public PartyId(BattleNet.DllEntityId dllPartyId) { this.Set(dllPartyId.hi, dllPartyId.lo); }
public void RequestPresenceFields(bool isGameAccountEntityId, [In] BattleNet.DllEntityId entityId, [In] BattleNet.DllPresenceFieldKey[] fieldList) {
public DllEntityId(BattleNet.DllEntityId copyFrom) { this.hi = copyFrom.hi; this.lo = copyFrom.lo; }
public void CopyFrom(BattleNet.DllEntityId id) { this.m_hi = id.hi; this.m_lo = id.lo; }