Esempio n. 1
0
        public static Command write(AttackTypeModule attackType, int targetUserId, int skillColorId)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(attackType.write());
            cmd.Integer(targetUserId);
            cmd.Integer(skillColorId);
            return(new Command(cmd.ToByteArray(), false));
        }
Esempio n. 2
0
        public static Command write(AttackTypeModule attackType, int attackerId, int victimId, int victimHitpoints, int victimShield, int victimNanohull,
                                    int damage, bool skilled)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(attackType.write());
            cmd.Integer(attackerId);
            cmd.Integer(victimId);
            cmd.Integer(victimHitpoints);
            cmd.Integer(victimShield);
            cmd.Integer(victimNanohull);
            cmd.Integer(damage);
            cmd.Boolean(skilled);
            return(new Command(cmd.ToByteArray(), false));
        }