Пример #1
0
 //Constructor
 public POIPointerMsg(PointerCtrlType myType, float myX, float myY, double time)
 {
     messageType = POIMsgDefinition.POI_POINTER_CONTROL;
     type = myType;
     x = myX;
     y = myY;
     timestamp = time;
 }
Пример #2
0
        //Deserializer
        public override void deserialize(byte[] buffer, ref int offset)
        {
            int typeInt = 0;
            deserializeInt32(buffer, ref offset, ref typeInt);
            type = (PointerCtrlType) typeInt;

            deserializeFloat(buffer, ref offset, ref x);
            deserializeFloat(buffer, ref offset, ref y);
            deserializeDouble(buffer, ref offset, ref timestamp);
        }