Modding toolkit and bugfixes for CardLife, pronounced like "celery"
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

26 linhas
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. }