Пример #1
0
        private static void Story_ResetState(IntPtr storyHandle)
        {
            var story = RuntimeService.ResolveHandle <Story>(storyHandle);

            story.ResetState();
        }
Пример #2
0
        private static byte *Story_ContinueMaximally(IntPtr storyHandle)
        {
            var story = RuntimeService.ResolveHandle <Story>(storyHandle);

            return(RuntimeService.StringToPointer(story.ContinueMaximally()));
        }
Пример #3
0
        private static byte Story_GetCanContinue(IntPtr storyHandle)
        {
            var story = RuntimeService.ResolveHandle <Story>(storyHandle);

            return(story.canContinue ? (byte)1 : (byte)0);
        }
Пример #4
0
        private static void Story_ChooseChoiceIndex(IntPtr storyHandle, int choiceIdx)
        {
            var story = RuntimeService.ResolveHandle <Story>(storyHandle);

            story.ChooseChoiceIndex(choiceIdx);
        }