public override void Compute() { TLArtifactsCollection artifacts = (TLArtifactsCollection)Workspace.Load("ListOfArtifacts"); TLArtifactsCollection processed = CamelCaseSplitter.ProcessArtifacts(artifacts, _config.ConvertLowercase); Workspace.Store("ListOfArtifacts", processed); }
/// <summary> /// Updates continue game panel /// </summary> private void UpdateContinueGamePanel() { if (GameState.Instance.GameData.AreWeDoingPlaythrough) { ContinueGamePanelText.text = GameState.Instance.GameData.Difficulty.ToString() + "\n" + CamelCaseSplitter.SplitCamelCase(GameState.Instance.GameData.Level); } else { ContinueGamePanelText.text = "Start a new game first before continuing one!"; } }
public void SimpleLowercaseTest() { String textToProcess = "ThisShouldGetSplittedToSeperateWords thisshouldnot thisShouldBe"; String expectedResult = "this should get splitted to seperate words thisshouldnot this should be"; String result = CamelCaseSplitter.ProcessText(textToProcess, true); #if Verbose Console.WriteLine("CamelCaseSplitterTest.SimpleLowercaseTest()"); Console.WriteLine("Original: " + textToProcess); Console.WriteLine("Expected: " + expectedResult); Console.WriteLine("Result: " + result); #endif Assert.AreEqual(expectedResult, result); }
// Start is called before the first frame update void Start() { // Selects sprite based on file number Sprite fileSprite = File1Sprite; switch (FileNo) { case 2: fileSprite = File2Sprite; break; case 3: fileSprite = File3Sprite; break; case 4: fileSprite = File4Sprite; break; } GetComponent <Image>().sprite = fileSprite; // Loads game data gameData = FileManager.LoadFile(FileNo); // If we're doing a playthrough if (gameData.AreWeDoingPlaythrough) { // Selects a difficulty DifficultyNormal.SetActive(false); DifficultyHard.SetActive(false); DifficultyNightmare.SetActive(false); switch (gameData.Difficulty) { case Difficulty.NORMAL: DifficultyNormal.SetActive(true); break; case Difficulty.HARD: DifficultyHard.SetActive(true); break; case Difficulty.NIGHTMARE: DifficultyNightmare.SetActive(true); break; } // Sets level text Level.text = CamelCaseSplitter.SplitCamelCase(gameData.Level); } else { // Hides playthrough components DifficultyNormal.SetActive(false); DifficultyHard.SetActive(false); DifficultyNightmare.SetActive(false); Level.gameObject.SetActive(false); } // Reset endings End.SetActive(false); TrueEnd.SetActive(false); NightmareEnd.SetActive(false); // Checks endings if (gameData.GotEnding) { End.SetActive(true); } if (gameData.GotTrueEnding) { TrueEnd.SetActive(true); } if (gameData.GotNightmareEnding) { NightmareEnd.SetActive(true); } }
void Awake() { SetText(CamelCaseSplitter.SplitCamelCase(SceneName)); SetSprite(SceneImage); }
public string Test(string str) => CamelCaseSplitter.BreakCamelCase(str);