Minor documentation fixes.
This commit is contained in:
@@ -40,7 +40,7 @@ struct AIRSData {
|
|||||||
AIRSData(bool one_shot) : mOneShot(one_shot) { }
|
AIRSData(bool one_shot) : mOneShot(one_shot) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
// A list of all statemachines registered for a particular event, and and API to work on it.
|
// A list of all statemachines registered for a particular event, and an API to work on it.
|
||||||
struct AIRegisteredStateMachines {
|
struct AIRegisteredStateMachines {
|
||||||
typedef std::map<AIStateMachine*, AIRSData> rsm_type;
|
typedef std::map<AIStateMachine*, AIRSData> rsm_type;
|
||||||
rsm_type mRegisteredStateMachines;
|
rsm_type mRegisteredStateMachines;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class AIEvent {
|
|||||||
*
|
*
|
||||||
* This may be called for already unregistered events.
|
* This may be called for already unregistered events.
|
||||||
* This should be called from the destructor of a statemachine for any event it registers,
|
* This should be called from the destructor of a statemachine for any event it registers,
|
||||||
* as well as when it doesn't need the event anymore (in the case on non- one shot events).
|
* as well as when it doesn't need the event anymore (in the case of non- one shot events).
|
||||||
*
|
*
|
||||||
* @param event the event we want to no longer be notified off.
|
* @param event the event we want to no longer be notified off.
|
||||||
* @param statemachine the statemachine.
|
* @param statemachine the statemachine.
|
||||||
|
|||||||
@@ -88,7 +88,10 @@ void AIFetchInventoryFolder::initialize_impl(void)
|
|||||||
mNeedNotifyObservers = false;
|
mNeedNotifyObservers = false;
|
||||||
set_state(AIFetchInventoryFolder_checkFolderExists);
|
set_state(AIFetchInventoryFolder_checkFolderExists);
|
||||||
if (!gInventory.isInventoryUsable())
|
if (!gInventory.isInventoryUsable())
|
||||||
|
{
|
||||||
|
// This immediately calls this->idle(), and then when the event occurs cont().
|
||||||
AIEvent::Register(AIEvent::LLInventoryModel_mIsAgentInvUsable_true, this);
|
AIEvent::Register(AIEvent::LLInventoryModel_mIsAgentInvUsable_true, this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AIFetchInventoryFolder::multiplex_impl(void)
|
void AIFetchInventoryFolder::multiplex_impl(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user