Unofficial CardLife revival project, pronounced like "celery"
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.

26 lines
691B

  1. using System.IO;
  2. using System.Reflection;
  3. using IllusionPlugin;
  4. namespace HelloModdingWorld
  5. {
  6. public class MyPlugin : IEnhancedPlugin // the Illusion Plugin Architecture (IPA) will ignore classes that don't implement IPlugin'
  7. {
  8. public override string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name;
  9. public override string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString();
  10. // called when Cardlife shuts down
  11. public override void OnApplicationQuit()
  12. {
  13. }
  14. // called when Cardlife starts up
  15. public override void OnApplicationStart()
  16. {
  17. File.WriteAllText(Name + ".log", "CLre was loaded and started up");
  18. }
  19. }
  20. }