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

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

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

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

            return(RuntimeService.StringToPointer(story.ContinueMaximally()));
        }
Пример #5
0
        private static IntPtr Story_CreateFromJsonString(byte *jsonString)
        {
            var story = new Story(RuntimeService.PointerToString(jsonString));

            return(RuntimeService.AllocateHandle(story));
        }