mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
On pCampBot, add bot as a property on behaviours instead of passing it in every time
This commit is contained in:
@@ -36,10 +36,19 @@ namespace pCampBot.Interfaces
|
||||
/// </summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initialize the behaviour for this bot.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This must be invoked before Action() is called.
|
||||
/// </remarks>
|
||||
/// <param name="bot"></param>
|
||||
void Initialize(Bot bot);
|
||||
|
||||
/// <summary>
|
||||
/// Action to take when this behaviour is invoked.
|
||||
/// </summary>
|
||||
/// <param name="bot"></param>
|
||||
void Action(Bot bot);
|
||||
void Action();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user