public static byte[] write(List <int> equippedLauncherTypes, AmmunitionTypeModule rocketType, int currentLoad)
        {
            var cmd = new ByteArray(ID);

            cmd.Integer(equippedLauncherTypes.Count);
            foreach (var loc in equippedLauncherTypes)
            {
                cmd.Integer(loc);
            }
            cmd.AddBytes(rocketType.write());
            cmd.Integer(currentLoad);
            return(cmd.ToByteArray());
        }
Example #2
0
 public AmmunitionCountModule(AmmunitionTypeModule type, double amount)
 {
     this.type   = type;
     this.amount = amount;
 }