Exemplo n.º 1
0
        public static GeneralActionPacket Create(uint _uid, DataAction _action, ushort _low1, ushort _high1)
        {
            var packet = new GeneralActionPacket();

            packet.UID       = _uid;
            packet.Data1Low  = _low1;
            packet.Data1High = _high1;
            packet.Action    = _action;
            return(packet);
        }
Exemplo n.º 2
0
        public static GeneralActionPacket Create(uint _uid, uint _data1, uint _data2, ushort _data3, DataAction _action)
        {
            var packet = new GeneralActionPacket();

            packet.UID    = _uid;
            packet.Data1  = _data1;
            packet.Data2  = _data2;
            packet.Data3  = _data3;
            packet.Action = _action;
            return(packet);
        }