mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Add pCampbot "remove behaviour" console command for removing bot behaviours during operation.
Doesn't currently work very well as stopping physics, for instance, can leave bot travelling in old direction
This commit is contained in:
@@ -184,6 +184,12 @@ namespace pCampBot
|
||||
CreateLibOmvClient();
|
||||
}
|
||||
|
||||
public bool TryGetBehaviour(string abbreviatedName, out IBehaviour behaviour)
|
||||
{
|
||||
lock (Behaviours)
|
||||
return Behaviours.TryGetValue(abbreviatedName, out behaviour);
|
||||
}
|
||||
|
||||
public bool AddBehaviour(IBehaviour behaviour)
|
||||
{
|
||||
lock (Behaviours)
|
||||
@@ -200,6 +206,12 @@ namespace pCampBot
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool RemoveBehaviour(string abbreviatedName)
|
||||
{
|
||||
lock (Behaviours)
|
||||
return Behaviours.Remove(abbreviatedName);
|
||||
}
|
||||
|
||||
private void CreateLibOmvClient()
|
||||
{
|
||||
GridClient newClient = new GridClient();
|
||||
|
||||
Reference in New Issue
Block a user