Ejemplo n.º 1
0
        public ushort wingsID = 0x0000; // ride wings model ID

        public override byte[] use(Hero p)
        {
            var pktsAfterUse = new byte[0];

            isActive = !isActive;

            PacketEncoder.concatPacket(
                PacketEncoder.activeBagItem(this.itemUID, isActive)
                , ref pktsAfterUse, false);
            // TODO: should split to two pkts? one for self, one for broadcast?

            return(pktsAfterUse);
        }