packet 10017 structure

01/25/2015 09:02 abdallah3010#1
some one can share packet 10017 structure i had been looked into some public source for structure but i just got messy structure
0 -> packet length
2 -> 10017
4 -> time stamp
8 -> identity
12 -> count
16 -> type
20 -> ulong value
what else?
01/25/2015 12:42 abdoumatrix#2
Quote:
Originally Posted by abdallah3010 View Post
some one can share packet 10017 structure i had been looked into some public source for structure but i just got messy structure
0 -> packet length
2 -> 10017
4 -> time stamp
8 -> identity
12 -> count
16 -> type
20 -> ulong value
what else?

0 -> packet length
2 -> 10017
4 -> time stamp
8 -> identity
12 -> count

for->count

x+16 -> type
x+20 -> uint value
x+24 -> uint value
01/25/2015 16:21 pro4never#3
For ease of use value should be treated as a ulong. You then write a helper method to access the ValueLow and ValueHigh sections of it.

Here's an example

Code:
  public uint DataLow
        {
            get { return (uint)Data; }
            set { Data = (ulong)((DataHigh << 32) | value); }
        }
        public uint DataHigh
        {
            get { return (uint)(Data >> 32); }
            set { Data = (ulong)((value << 32) | DataLow); }
        }
This is useful because often you DO want the full ulong (status effects) wheras other times you need separate values
01/25/2015 17:21 abdallah3010#4
pro4never thanks that's what i looking for ^_^
01/26/2015 00:17 abdoumatrix#5
if he gonna use bits he won't need ulong ??
01/26/2015 11:53 KraHen#6
Quote:
Originally Posted by abdoumatrix View Post
if he gonna use bits he won't need ulong ??
Get out of my internet.
01/26/2015 20:16 abdoumatrix#7
Quote:
Originally Posted by KraHen View Post
Get out of my internet.
no :p