コード例 #1
0
 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()));
 }
コード例 #2
0
 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(),
     });
コード例 #3
0
ファイル: TrackUsage.cs プロジェクト: punker76/Gallifrey
 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
     });
 }
コード例 #4
0
 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(),
     });
コード例 #5
0
 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();
 }
コード例 #6
0
        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);
        }
コード例 #7
0
 public static string ToPrettyString(this InstanceType type) => type == InstanceType.StackTopOrGlobal ? STOG : type.ToString().ToLowerInvariant();
コード例 #8
0
ファイル: TrackUsage.cs プロジェクト: fzr600dave/Gallifrey
        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}";
        }
コード例 #9
0
ファイル: InitMessage.cs プロジェクト: capnfabs/ipctk
 public override string ToString()
 {
     return(String.Format("[InitMessage: <{0}> | {1}", InstanceType.ToString(), String.Join("/", Arguments.Select(arg => arg.ToString()))));
 }
コード例 #10
0
 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));
 }
コード例 #11
0
 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()));
 }
コード例 #12
0
 public static string GetSimpleActorJSONString(InstanceType type, Vector3 position, Quaternion rotation)
 {
     return(string.Format("{0}|{1}|{2}", type.ToString(), position.ToString(), rotation.ToString()));
 }