/// <summary> /// Creates an army detachment to leave for a player /// </summary> /// <param name="armyID">ID of army to create a detachment from</param> /// <param name="playerID">ID of player to leave detachment for</param> /// <param name="troops">Number of troops to leave /// /// 0 = knights /// 1 = menAtArms /// 2 = lightCav /// 3 = longbowmen /// 4 = crossbowmen /// 5 = foot /// 6 = rabble</param> public void DropOffTroops(string armyID, string playerID, uint[] troops) { ProtoDetachment detachment = new ProtoDetachment(); detachment.armyID = armyID; detachment.leftFor = playerID; detachment.troops = troops; detachment.ActionType = Actions.DropOffTroops; net.Send(detachment); }
public static ProtoMessage DropOffTroops(uint[] Troops, TextTestClient client) { ProtoCharacter armyResult = GetCharacterDetails("Char_158", client); ProtoDetachment protoDetachment = new ProtoDetachment(); protoDetachment.ActionType = Actions.DropOffTroops; protoDetachment.troops = Troops; protoDetachment.armyID = armyResult.armyID; protoDetachment.leftFor = "Char_158"; client.net.Send(protoDetachment); var reply = GetActionReply(Actions.DropOffTroops, client); return(reply); }