public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (TransportOrderNo?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (OrderYear?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DocumentTransportNo?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (OrderDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DepartureCustomerName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DepartureAddress?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DepartureCity?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DepartureState?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DestinationName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DestinationAddress?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DestinationCity?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DestinationState?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Qty?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (OrderWeight?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Volume?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Pallet?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RetiredDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DeliveryDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Note?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CallCustomerBefore?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Telephone?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DayClosed?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Urgent?.GetHashCode() ?? 0); return(hashCode); }
public static void Deqeuee(Point a, byte MapId, byte departuremap) { lock (states) { for (int i = 0; i < states.Count; i++) { DepartureState state = states[i]; if (state.detinationmap == MapId && state.zone.CathelayaLocation.map == departuremap && state.IsRound()) { List <Character> characters = new List <Character>(); foreach (Character character in state.zone.Regiontree.SearchActors(SearchFlags.Characters)) { characters.Add(character); } while (characters.Count > 0) { CommonFunctions.Warp(characters[0], state.detinationmap, a); characters.RemoveAt(0); } states.RemoveAt(i); break; } } } }
public static void Enqeuee(List<Character> characters, byte Map, Point A, byte Map2, int MinTime) { DepartureState Departure = new DepartureState(A, Map, Map2, MinTime); foreach (Character target in characters) { CommonFunctions.Warp(target, new Point(2468.964F, 446.603F, 611.224F), Departure.zone); } lock (states) { states.Add(Departure); } }
public static void Enqeuee(List <Character> characters, byte Map, Point A, byte Map2, int MinTime) { DepartureState Departure = new DepartureState(A, Map, Map2, MinTime); foreach (Character target in characters) { CommonFunctions.Warp(target, new Point(2468.964F, 446.603F, 611.224F), Departure.zone); } lock (states) { states.Add(Departure); } }
internal static void ForcePlayerFromShipZone(Character character) { lock (states) { for (int i = 0; i < states.Count; i++) { DepartureState state = states[i]; if (state.zone == character.currentzone) { character.map = state.zone.CathelayaLocation.map; character.Position = state.zone.CathelayaLocation.coords; break; } } } }