Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkRuntime / VariableAssignment.cs
@Rackday Rackday on 29 Oct 815 bytes Major Update
  1. using System.ComponentModel;
  2. namespace Ink.Runtime
  3. {
  4. // The value to be assigned is popped off the evaluation stack, so no need to keep it here
  5. public class VariableAssignment : Runtime.Object
  6. {
  7. public string variableName { get; protected set; }
  8. public bool isNewDeclaration { get; protected set; }
  9. public bool isGlobal { get; set; }
  10. public VariableAssignment (string variableName, bool isNewDeclaration)
  11. {
  12. this.variableName = variableName;
  13. this.isNewDeclaration = isNewDeclaration;
  14. }
  15. // Require default constructor for serialisation
  16. public VariableAssignment() : this(null, false) {}
  17. public override string ToString ()
  18. {
  19. return "VarAssign to " + variableName;
  20. }
  21. }
  22. }