Aetheria/Assets/Plugins/Ink/ink-engine-runtime/SearchResult.cs
Reinier Vens b1bd89a687 Mini Galaxy Gen
Added flags to game manager and player settings to check tutorial status
Created alternate galaxy generation process for tutorial
2021-04-22 02:53:06 +01:00

18 lines
822 B
C#

using System;
namespace Ink.Runtime
{
// When looking up content within the story (e.g. in Container.ContentAtPath),
// the result is generally found, but if the story is modified, then when loading
// up an old save state, then some old paths may still exist. In this case we
// try to recover by finding an approximate result by working up the story hierarchy
// in the path to find the closest valid container. Instead of crashing horribly,
// we might see some slight oddness in the content, but hopefully it recovers!
public struct SearchResult
{
public Runtime.Object obj;
public bool approximate;
public Runtime.Object correctObj { get { return approximate ? null : obj; } }
public Container container { get { return obj as Container; } }
}
}