mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-29 10:34:27 +11:00
Committed everything
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user