InteractionService.cs 708 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace FF8
  3. {
  4. public sealed class InteractionService : IInteractionService
  5. {
  6. public Boolean IsSupported => true;
  7. private readonly Int32[] _executionResults = new Int32[ScriptResultId.MaxIndex + 1];
  8. public Int32 this[ScriptResultId id]
  9. {
  10. get => _executionResults[id.ResultId];
  11. set => _executionResults[id.ResultId] = value;
  12. }
  13. public IAwaitable Wait(Int32 frameNumber)
  14. {
  15. // TODO: Field script
  16. Console.WriteLine($"NotImplemented: {nameof(InteractionService)}.{nameof(Wait)}({nameof(frameNumber)}: {frameNumber})");
  17. return DummyAwaitable.Instance;
  18. }
  19. }
  20. }