Aetheria/Assets/Plugins/Ink/compiler/ParsedHierarchy/Wrap.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

27 lines
632 B
C#

namespace Ink.Parsed
{
public class Wrap<T> : Parsed.Object where T : Runtime.Object
{
public Wrap (T objToWrap)
{
_objToWrap = objToWrap;
}
public override Runtime.Object GenerateRuntimeObject ()
{
return _objToWrap;
}
T _objToWrap;
}
// Shorthand for writing Parsed.Wrap<Runtime.Glue> and Parsed.Wrap<Runtime.Tag>
public class Glue : Wrap<Runtime.Glue> {
public Glue (Runtime.Glue glue) : base(glue) {}
}
public class Tag : Wrap<Runtime.Tag> {
public Tag (Runtime.Tag tag) : base (tag) { }
}
}