Ejemplo n.º 1
0
        public static byte[] write(AttackTypeModule attackType, int targetUserId, int skillColorId)
        {
            ByteArray param1 = new ByteArray(ID);

            param1.write(attackType.write());
            param1.writeInt(targetUserId);
            param1.writeInt(skillColorId);
            return(param1.ToByteArray());
        }
Ejemplo n.º 2
0
        public static byte[] write(AttackTypeModule attackTypeValue, int attackerId, int targetId, int targetHitpoints, int targetShield, int targetNanoHull, int damage, bool skilled)
        {
            ByteArray param1 = new ByteArray(ID);

            param1.writeInt(targetNanoHull << 2 | targetNanoHull >> 30);
            param1.writeInt(attackerId >> 13 | attackerId << 19);
            param1.writeBoolean(skilled);
            param1.write(attackTypeValue.write());
            param1.writeInt(targetId << 15 | targetId >> 17);
            param1.writeInt(damage >> 2 | damage << 30);
            param1.writeInt(targetShield >> 15 | targetShield << 17);
            param1.writeInt(targetHitpoints << 9 | targetHitpoints >> 23);
            return(param1.ToByteArray());
        }
Ejemplo n.º 3
0
        public static byte[] write(AttackTypeModule attackType, int attackerId, int targetId, int targetHitpoints, int targetShield, int targetNanoHull, int damage, bool skilled)
        {
            ByteArray param1 = new ByteArray(ID);

            param1.write(attackType.write());
            param1.writeInt(attackerId);
            param1.writeInt(targetId);
            param1.writeInt(targetHitpoints);
            param1.writeInt(targetShield);
            param1.writeInt(targetNanoHull);
            param1.writeInt(damage);
            param1.writeBoolean(skilled);
            return(param1.ToByteArray());
        }