private static void Story_ResetState(IntPtr storyHandle) { var story = RuntimeService.ResolveHandle <Story>(storyHandle); story.ResetState(); }
private static byte Story_GetCanContinue(IntPtr storyHandle) { var story = RuntimeService.ResolveHandle <Story>(storyHandle); return(story.canContinue ? (byte)1 : (byte)0); }
private static void Story_ChooseChoiceIndex(IntPtr storyHandle, int choiceIdx) { var story = RuntimeService.ResolveHandle <Story>(storyHandle); story.ChooseChoiceIndex(choiceIdx); }
private static byte *Story_ContinueMaximally(IntPtr storyHandle) { var story = RuntimeService.ResolveHandle <Story>(storyHandle); return(RuntimeService.StringToPointer(story.ContinueMaximally())); }
private static IntPtr Story_CreateFromJsonString(byte *jsonString) { var story = new Story(RuntimeService.PointerToString(jsonString)); return(RuntimeService.AllocateHandle(story)); }