Skip to content

Instantly share code, notes, and snippets.

@schmidtgit
Last active March 30, 2018 16:32
Show Gist options
  • Save schmidtgit/b0689fa68d6d981d3fa7dc66d5b35c27 to your computer and use it in GitHub Desktop.
Save schmidtgit/b0689fa68d6d981d3fa7dc66d5b35c27 to your computer and use it in GitHub Desktop.
Extremely simple example on how to write a module for the Abathur framework.
using Abathur.Constants;
using Abathur.Core;
using Abathur.Modules;
namespace AbathurBot.Modules.Examples {
class BansheeTest : IModule {
private IProductionManager _pQueue;
public BansheeTest(IProductionManager productionManager) {
_pQueue = productionManager;
}
public void Initialize() {}
public void OnStart()
=> _pQueue.QueueUnit(BlizzardConstants.Unit.Banshee);
public void OnStep() {}
public void OnGameEnded() {}
public void OnRestart() {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment