PARTICLEOFF.cs 828 B

123456789101112131415161718192021222324252627282930313233
  1. namespace OpenVIII.Fields.Scripts.Instructions
  2. {
  3. /// <summary>
  4. /// Turn Particleoff
  5. /// </summary>
  6. /// <see cref="http://wiki.ffrtt.ru/index.php?title=FF8/Field/Script/Opcodes/14F_PARTICLEOFF&action=edit&redlink=1"/>
  7. public sealed class PARTICLEOFF : JsmInstruction
  8. {
  9. #region Fields
  10. private readonly IJsmExpression _arg0;
  11. #endregion Fields
  12. #region Constructors
  13. public PARTICLEOFF(IJsmExpression arg0) => _arg0 = arg0;
  14. public PARTICLEOFF(int parameter, IStack<IJsmExpression> stack)
  15. : this(
  16. arg0: stack.Pop())
  17. {
  18. }
  19. #endregion Constructors
  20. #region Methods
  21. public override string ToString() => $"{nameof(PARTICLEOFF)}({nameof(_arg0)}: {_arg0})";
  22. #endregion Methods
  23. }
  24. }