diff options
author | Justin Clark-Casey (justincc) | 2013-09-03 19:33:17 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-09-03 19:33:17 +0100 |
commit | 3dbe7313d1c3fc28f0642531fbb6e238a98ac821 (patch) | |
tree | fdb7503109ee947e5bb9fd7d6fbe31933a0aa2e1 /OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs | |
parent | Add pCampbot "remove behaviour" console command for removing bot behaviours d... (diff) | |
download | opensim-SC_OLD-3dbe7313d1c3fc28f0642531fbb6e238a98ac821.zip opensim-SC_OLD-3dbe7313d1c3fc28f0642531fbb6e238a98ac821.tar.gz opensim-SC_OLD-3dbe7313d1c3fc28f0642531fbb6e238a98ac821.tar.bz2 opensim-SC_OLD-3dbe7313d1c3fc28f0642531fbb6e238a98ac821.tar.xz |
Add Close() method to IBehaviour to allow behaviours to cleanup when removed or bot it disconnected.
In this case, it is used to turn off jump when physics testing behaviour is removed.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs b/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs index f8a661b..0ed4825 100644 --- a/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs +++ b/OpenSim/Tools/pCampBot/Interfaces/IBehaviour.cs | |||
@@ -51,6 +51,14 @@ namespace pCampBot.Interfaces | |||
51 | void Initialize(Bot bot); | 51 | void Initialize(Bot bot); |
52 | 52 | ||
53 | /// <summary> | 53 | /// <summary> |
54 | /// Close down this behaviour. | ||
55 | /// </summary> | ||
56 | /// <remarks> | ||
57 | /// This is triggered if a behaviour is removed via explicit command and when a bot is disconnected | ||
58 | /// </remarks> | ||
59 | void Close(); | ||
60 | |||
61 | /// <summary> | ||
54 | /// Action to take when this behaviour is invoked. | 62 | /// Action to take when this behaviour is invoked. |
55 | /// </summary> | 63 | /// </summary> |
56 | /// <param name="bot"></param> | 64 | /// <param name="bot"></param> |