class
cDropCargoToolStrategy
Base classes
- class cDefaultBeamTool
Public static variables
-
static const uint32_
t STRATEGY_ID
Public functions
-
auto Update(cSpaceToolData* pTool,
bool showErrors,
const char16_
t** ppFailText = nullptr) -> bool override - Called every game loop if the tool is visible, that is, if the panel that contains it is selected or if the tool is selected.
- auto WhileAiming(cSpaceToolData* pTool, const Vector3& aimPoint, bool showErrors) -> bool override
- auto WhileFiring(cSpaceToolData* pTool, const Vector3& aimPoint, int) -> bool override
- auto OnMouseUp(cSpaceToolData* pTool) -> bool override
Function documentation
bool Simulator:: cDropCargoToolStrategy:: Update(cSpaceToolData* pTool,
bool showErrors,
const char16_ t** ppFailText = nullptr) override
Called every game loop if the tool is visible, that is, if the panel that contains it is selected or if the tool is selected.
Parameters | |
---|---|
pTool | The space tool. |
showErrors | Whether event logs should be shown to the player or not. |
ppFailText | [Optional] If not null, an error text can be set so that it is shown in the tool button. |
Returns | Whether the tool must be enabled or not. |
The return value is used to tell if the tool is available to be used or not.
- If the method returns false, the tool is disabled and cannot be selected.
- If the method returns true, the tool is enabled and can be used.