public static string GetDirectionJSONString(InstanceType type, Vector3 position, Quaternion rotation, bool usePoint, bool visiblePoint, Vector3 pos2, Quaternion rot2, Vector3 pos3, Quaternion rot3) { return(string.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}", type.ToString(), position.ToString(), rotation.ToString(), usePoint.ToString(), visiblePoint.ToString(), pos2.ToString(), rot2.ToString(), pos3.ToString(), rot3.ToString())); }
public static string InstanceTypeToString(InstanceType type) { return(type switch { InstanceType.AutoQuest => "auto_quest", InstanceType.CirclePokemon => "circle_pokemon", InstanceType.CircleRaid => "circle_raid", InstanceType.SmartCircleRaid => "smart_raid", InstanceType.PokemonIV => "pokemon_iv", InstanceType.Bootstrap => "bootstrap", InstanceType.FindTTH => "find_tth", _ => type.ToString(), });
private PageView GetPageView(TrackingType trackingType) { return(new PageView { DocumentTitle = trackingType.ToString(), DocumentLocationUrl = $"https://gallifrey-releases.blyth.me.uk/tracking/{trackingType}", CampaignSource = instanceType.ToString(), CampaignMedium = $"{versionControl.DeployedVersion.Major}.{versionControl.DeployedVersion.Minor}.{versionControl.DeployedVersion.Build}", CampaignName = $"{versionControl.DeployedVersion.Major}.{versionControl.DeployedVersion.Minor}.{versionControl.DeployedVersion.Build}.{versionControl.DeployedVersion.Revision}", UserId = settingsCollection.InstallationHash, UserLanguage = CultureInfo.InstalledUICulture.NativeName }); }
private static string FormatInstanceType(InstanceType type) { return(type switch { InstanceType.AutoQuest => "Auto Quest", InstanceType.CirclePokemon => "Circle Pokemon", InstanceType.CircleRaid => "Circle Raid", InstanceType.SmartCircleRaid => "Smart Raid", InstanceType.PokemonIV => "Pokemon IV", InstanceType.Bootstrap => "Bootstrap", InstanceType.FindTTH => "Spawnpoint TTH Finder", _ => type.ToString(), });
public CreateInstanceDialog(Dictionary <long, IProtocolPlugin> .ValueCollection protocols, InstanceType type) { InitializeComponent(); foreach (var protocol in protocols) { if (!protocol.SupportsType(type)) { continue; } var item = new ListViewItem(new string[] { protocol.ProtocolName, protocol.Name, protocol.Version.ToString(), protocol.Author }); item.Tag = protocol; this.protocolSelect.Items.Add(item); } protocolSelect.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); protocolSelect.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); this.Text = "New " + type.ToString(); }
private void SetTrackingQueryString(IInternalSettings internalSettings) { var versionName = ApplicationDeployment.IsNetworkDeployed ? instanceType.ToString() : "Debug"; trackingQueryString = string.Format("utm_source=GallifreyApp_{0}&utm_medium={1}&utm_campaign={2}", appType, versionName, internalSettings.LastChangeLogVersion); }
public static string ToPrettyString(this InstanceType type) => type == InstanceType.StackTopOrGlobal ? STOG : type.ToString().ToLowerInvariant();
private void SetTrackingQueryString(IInternalSettings internalSettings) { var versionName = ApplicationDeployment.IsNetworkDeployed ? instanceType.ToString() : "Debug"; trackingQueryString = $"utm_source=GallifreyApp_{appType}&utm_medium={versionName}&utm_campaign={internalSettings.LastChangeLogVersion}&uid={internalSettings.InstallationInstaceId}"; }
public override string ToString() { return(String.Format("[InitMessage: <{0}> | {1}", InstanceType.ToString(), String.Join("/", Arguments.Select(arg => arg.ToString())))); }
public static string GetLineActorJSONString(InstanceType type, Vector3 position, Quaternion rotation, string lineActors) { return(string.Format("{0}|{1}|{2}|{3}", type.ToString(), position.ToString(), rotation.ToString(), lineActors)); }
public static string GetPairActorJSONString(InstanceType type, Vector3 position, Quaternion rotation, bool positionsStatus, bool armsStatus) { return(string.Format("{0}|{1}|{2}|{3}|{4}", type.ToString(), position.ToString(), rotation.ToString(), positionsStatus.ToString(), armsStatus.ToString())); }
public static string GetSimpleActorJSONString(InstanceType type, Vector3 position, Quaternion rotation) { return(string.Format("{0}|{1}|{2}", type.ToString(), position.ToString(), rotation.ToString())); }