コード例 #1
0
        public static byte[] write(AttackTypeModule attackType, int targetUserId, int skillColorId)
        {
            var cmd = new ByteArray(ID);

            cmd.AddBytes(attackType.write());
            cmd.Integer(targetUserId);
            cmd.Integer(skillColorId);
            return(cmd.ToByteArray());
        }
コード例 #2
0
        public static byte[] 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(cmd.ToByteArray());
        }
コード例 #3
0
        public static byte[] write(int attackerId, int targetId, bool hit, int currentLoad, AttackTypeModule rocketType)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(attackerId);
            cmd.Integer(targetId);
            cmd.Boolean(hit);
            cmd.Integer(currentLoad);
            cmd.AddBytes(rocketType.write());
            return(cmd.ToByteArray());
        }