Ejemplo n.º 1
0
    public static BnetGameAccountId CreateFromDll(BattleNet.DllEntityId src)
    {
        BnetGameAccountId id = new BnetGameAccountId();

        id.CopyFrom(src);
        return(id);
    }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
    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);
    }
Ejemplo n.º 5
0
 public static PartyId FromEntityId(BattleNet.DllEntityId entityId)
 {
     return(new PartyId(entityId));
 }
Ejemplo n.º 6
0
 public PartyId(BattleNet.DllEntityId dllPartyId)
 {
     this.Set(dllPartyId.hi, dllPartyId.lo);
 }
Ejemplo n.º 7
0
 public void RequestPresenceFields(bool isGameAccountEntityId, [In] BattleNet.DllEntityId entityId, [In] BattleNet.DllPresenceFieldKey[] fieldList)
 {
Ejemplo n.º 8
0
 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;
 }