menu
This commit is contained in:
@@ -26,6 +26,7 @@ namespace Ichni.Story
|
||||
FunctionInterpreter.SetFunction("GetVariable", new Func<string, int>(GetStoryVariable));
|
||||
FunctionInterpreter.SetFunction("GenerateDialogBlock", new Action<string>(GenerateDialogBlock));
|
||||
FunctionInterpreter.SetFunction("GenerateSongBlock", new Action<string>(GenerateSongBlock));
|
||||
FunctionInterpreter.SetFunction("SetUnlockKey", new Action<string>(SetUnlockKey));
|
||||
}
|
||||
|
||||
static void SetConditionInterpreter()
|
||||
@@ -75,5 +76,13 @@ namespace Ichni.Story
|
||||
SongBlockUI newBlock = StoryManager.instance.storyline.GenerateSongBlock(blockName, currentBlock.blockPosition + positionOffset, StoryBlockState.Current);
|
||||
StoryManager.instance.storyline.GenerateConnector(currentBlock, newBlock);
|
||||
}
|
||||
|
||||
static void SetUnlockKey(string key)
|
||||
{
|
||||
if (GameSaveManager.instance.SongSaveModule.unlockKeys.Add(key))
|
||||
{
|
||||
GameSaveManager.instance.SongSaveModule.SaveUnlockKeys();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user