Ink Integration
Initial integration of Ink scripting - simply runs the first story it finds.
This commit is contained in:
parent
9779afb1bb
commit
82c8041765
215 changed files with 23662 additions and 17 deletions
27
Assets/Ink/ink-engine-runtime/VariableAssignment.cs
Normal file
27
Assets/Ink/ink-engine-runtime/VariableAssignment.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System.ComponentModel;
|
||||
|
||||
namespace Ink.Runtime
|
||||
{
|
||||
// The value to be assigned is popped off the evaluation stack, so no need to keep it here
|
||||
public class VariableAssignment : Runtime.Object
|
||||
{
|
||||
public string variableName { get; protected set; }
|
||||
public bool isNewDeclaration { get; protected set; }
|
||||
public bool isGlobal { get; set; }
|
||||
|
||||
public VariableAssignment (string variableName, bool isNewDeclaration)
|
||||
{
|
||||
this.variableName = variableName;
|
||||
this.isNewDeclaration = isNewDeclaration;
|
||||
}
|
||||
|
||||
// Require default constructor for serialisation
|
||||
public VariableAssignment() : this(null, false) {}
|
||||
|
||||
public override string ToString ()
|
||||
{
|
||||
return "VarAssign to " + variableName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue