コード例 #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));
        }