public static ProtoMessage TravelTo(string charID, string destinationFiefID, TextTestClient client) { ProtoMessage request = new ProtoTravelTo { ActionType = Actions.TravelTo, characterID = charID, travelTo = destinationFiefID, travelVia = null }; client.net.Send(request); return(GetActionReply(Actions.TravelTo, client)); }
public ProtoFief Move(MoveDirections directions, TextTestClient client) { ProtoTravelTo protoTravel = new ProtoTravelTo(); protoTravel.travelVia = new[] { directions.ToString() }; protoTravel.characterID = "Char_158"; client.net.Send(protoTravel); var reply = GetActionReply(Actions.TravelTo, client); var travel = (ProtoFief)reply.Result; return(travel); }
public ProtoFief Move(MoveDirections directions) { ProtoTravelTo protoTravel = new ProtoTravelTo(); protoTravel.travelVia = new[] { directions.ToString() }; protoTravel.characterID = "Char_158"; tclient.net.Send(protoTravel); var reply = GetActionReply(Actions.TravelTo, tclient); var travel = (ProtoFief)reply; if (mf.fiefID.Equals(travel.fiefID)) { return(null); } return(travel); }