Jsm.IndexedInstruction.cs 810 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using OpenVIII.Fields.Scripts.Instructions;
  2. namespace OpenVIII.Fields.Scripts
  3. {
  4. public static partial class Jsm
  5. {
  6. #region Classes
  7. public sealed class IndexedInstruction
  8. {
  9. #region Constructors
  10. public IndexedInstruction(int index, JsmInstruction instruction)
  11. {
  12. Index = index;
  13. Instruction = instruction;
  14. }
  15. #endregion Constructors
  16. #region Properties
  17. public int Index { get; }
  18. public JsmInstruction Instruction { get; }
  19. #endregion Properties
  20. #region Methods
  21. public override string ToString() => $"[Index: {Index}] {Instruction}";
  22. #endregion Methods
  23. }
  24. #endregion Classes
  25. }
  26. }