Last active
March 30, 2018 16:32
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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