| 123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- namespace OpenVIII.Fields.Scripts.Instructions
- {
- internal sealed class FADEOUT : JsmInstruction
- {
- public FADEOUT()
- {
- }
- public FADEOUT(Int32 parameter, IStack<IJsmExpression> stack)
- : this()
- {
- }
- public override String ToString()
- {
- return $"{nameof(FADEOUT)}()";
- }
- public override void Format(ScriptWriter sw, IScriptFormatterContext formatterContext, IServices services)
- {
- sw.Format(formatterContext, services)
- .StaticType(nameof(IFieldService))
- .Method(nameof(IFieldService.FadeOut))
- .Comment(nameof(FADEOUT));
- }
- public override IAwaitable TestExecute(IServices services)
- {
- ServiceId.Field[services].FadeOut();
- return DummyAwaitable.Instance;
- }
- }
- }
|