A stable modding interface between Techblox and mods https://mod.exmods.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1KB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Svelto.ECS;
  7. using GamecraftModdingAPI.Utility;
  8. namespace GamecraftModdingAPI.Events
  9. {
  10. /// <summary>
  11. /// Engine interface to create a ModEventEntityStruct in entitiesDB when Emit() is called.
  12. /// </summary>
  13. public interface IEventEmitterEngine : IApiEngine
  14. {
  15. /// <summary>
  16. /// The type of event emitted
  17. /// </summary>
  18. object type { get; }
  19. /// <summary>
  20. /// Whether the emitter can be removed with Manager.RemoveEventEmitter(name)
  21. /// </summary>
  22. bool isRemovable { get; }
  23. /// <summary>
  24. /// The EntityFactory for the entitiesDB.
  25. /// Use this to create a ModEventEntityStruct when Emit() is called.
  26. /// </summary>
  27. IEntityFactory Factory { set; }
  28. /// <summary>
  29. /// Emit the event so IEventHandlerEngines can handle it.
  30. /// Call Emit() to trigger the IEventEmitterEngine's event.
  31. /// </summary>
  32. void Emit();
  33. }
  34. }