public static void CreateSigningRequest(KeyConfiguration keyConfiguration, int keyPairContext) { }
public static int CreateCaCertificate(KeyConfiguration configuration, int keyContext) { }
public static void InitializeLegacyLocalization() { FillNameCacheArray <PrefixID, int>("Prefix", prefix); for (int i = 0; i < gen.Length; i++) { gen[i] = Language.GetText("LegacyWorldGen." + i); } for (int j = 0; j < menu.Length; j++) { menu[j] = Language.GetText("LegacyMenu." + j); } for (int k = 0; k < inter.Length; k++) { inter[k] = Language.GetText("LegacyInterface." + k); } for (int l = 0; l < misc.Length; l++) { misc[l] = Language.GetText("LegacyMisc." + l); } for (int m = 0; m < mp.Length; m++) { mp[m] = Language.GetText("LegacyMultiplayer." + m); } for (int n = 0; n < tip.Length; n++) { tip[n] = Language.GetText("LegacyTooltip." + n); } for (int num = 0; num < chestType.Length; num++) { chestType[num] = Language.GetText("LegacyChestType." + num); } for (int num2 = 0; num2 < chestType2.Length; num2++) { chestType2[num2] = Language.GetText("LegacyChestType2." + num2); } for (int num3 = 0; num3 < dresserType.Length; num3++) { dresserType[num3] = Language.GetText("LegacyDresserType." + num3); } FillNameCacheArray <ItemID, short>("ItemName", _itemNameCache); FillNameCacheArray <ProjectileID, short>("ProjectileName", _projectileNameCache); FillNameCacheArray <NPCID, short>("NPCName", _npcNameCache); FillNameCacheArray <BuffID, int>("BuffName", _buffNameCache); FillNameCacheArray <BuffID, int>("BuffDescription", _buffDescriptionCache); FillNameCacheArray <EmoteID, int>("EmojiName", _emojiNameCache, leaveMissingEntriesBlank: true); for (int num4 = -65; num4 < 0; num4++) { _negativeNpcNameCache[-num4 - 1] = _npcNameCache[NPCID.FromNetId(num4)]; } _negativeNpcNameCache[0] = Language.GetText("NPCName.Slimeling"); _negativeNpcNameCache[1] = Language.GetText("NPCName.Slimer2"); _negativeNpcNameCache[2] = Language.GetText("NPCName.GreenSlime"); _negativeNpcNameCache[3] = Language.GetText("NPCName.Pinky"); _negativeNpcNameCache[4] = Language.GetText("NPCName.BabySlime"); _negativeNpcNameCache[5] = Language.GetText("NPCName.BlackSlime"); _negativeNpcNameCache[6] = Language.GetText("NPCName.PurpleSlime"); _negativeNpcNameCache[7] = Language.GetText("NPCName.RedSlime"); _negativeNpcNameCache[8] = Language.GetText("NPCName.YellowSlime"); _negativeNpcNameCache[9] = Language.GetText("NPCName.JungleSlime"); _negativeNpcNameCache[53] = Language.GetText("NPCName.SmallRainZombie"); _negativeNpcNameCache[54] = Language.GetText("NPCName.BigRainZombie"); ItemTooltip.AddGlobalProcessor(delegate(string tooltip) { if (tooltip.Contains("<right>")) { InputMode inputMode = InputMode.XBoxGamepad; if (PlayerInput.UsingGamepad) { inputMode = InputMode.XBoxGamepadUI; } if (inputMode == InputMode.XBoxGamepadUI) { KeyConfiguration keyConfiguration = PlayerInput.CurrentProfile.InputModes[inputMode]; string text = PlayerInput.BuildCommand("", true, keyConfiguration.KeyStatus["MouseRight"]); text = text.Replace(": ", ""); tooltip = tooltip.Replace("<right>", text); } else { tooltip = tooltip.Replace("<right>", Language.GetTextValue("Controls.RightClick")); } } if (tooltip.Contains("<left>")) { InputMode inputMode2 = InputMode.XBoxGamepad; if (PlayerInput.UsingGamepad) { inputMode2 = InputMode.XBoxGamepadUI; } if (inputMode2 == InputMode.XBoxGamepadUI) { KeyConfiguration keyConfiguration2 = PlayerInput.CurrentProfile.InputModes[inputMode2]; string text2 = PlayerInput.BuildCommand("", true, keyConfiguration2.KeyStatus["MouseLeft"]); text2 = text2.Replace(": ", ""); tooltip = tooltip.Replace("<left>", text2); } else { tooltip = tooltip.Replace("<left>", Language.GetTextValue("Controls.LeftClick")); } } return(tooltip); }); for (int num5 = 0; num5 < _itemTooltipCache.Length; num5++) { _itemTooltipCache[num5] = ItemTooltip.None; } (from f in typeof(ItemID).GetFields(BindingFlags.Static | BindingFlags.Public) where f.FieldType == typeof(short) select f).ToList().ForEach(delegate(FieldInfo field) { short num6 = (short)field.GetValue(null); if (num6 > 0 && num6 < _itemTooltipCache.Length) { _itemTooltipCache[num6] = ItemTooltip.FromLanguageKey("ItemTooltip." + field.Name); } }); }
/// <summary> /// Sets up the API keys for the API wrappers to run from. /// </summary> /// <param name="config">The config section that includes all the API keys.</param> private static void SetApiKeys(KeyConfiguration config) { KeyStorage.ApiKey = _config.GetSection("keys:champion.gg").Value; SpeedrunAPIClient.ApiKey = _config.GetSection("keys:speedrun").Value; YoutubeRequester.ApiKey = _config.GetSection("keys:youtube").Value; }
public static void GenerateKeyPair(KeyConfiguration keyConfiguration) { }
public AdhocAction(WowProcess wowProcess, PlayerReader playerReader, StopMoving stopMoving, KeyConfiguration key, CastingHandler castingHandler, ILogger logger) { this.wowProcess = wowProcess; this.stopMoving = stopMoving; this.playerReader = playerReader; this.key = key; this.logger = logger; this.castingHandler = castingHandler; if (key.InCombat == "false") { AddPrecondition(GoapKey.incombat, false); } else if (key.InCombat == "true") { AddPrecondition(GoapKey.incombat, true); } this.Keys.Add(key); }