Navigation
API > API/Plugins > API/Plugins/MassSmartObjects
References
| Module | MassSmartObjects |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Public/MassSmartObjectHandler.h |
| Include | #include "MassSmartObjectHandler.h" |
Syntax
struct FMassSmartObjectHandler
Remarks
Mediator struct that encapsulates communication between SmartObjectSubsystem and Mass. This object is meant to be created and used in method scope to guarantee subsystems validity.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMassSmartObjectHandler
(
FMassEntityManager& InEntityManager, |
FMassSmartObjectHandler constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSmartObjectClaimHandle | ClaimCandidate
(
const FMassEntityHandle Entity, |
Claims the first available smart object from the provided candidates. | |
| FSmartObjectClaimHandle | ClaimSmartObject
(
const FMassEntityHandle Entity, |
Claims the first available slot holding any type of USmartObjectMassBehaviorDefinition in the smart object associated to the provided identifier. | |
| FMassSmartObjectRequestID | FindCandidatesAsync
(
const FMassEntityHandle RequestingEntity, |
Creates an async request to build a list of compatible smart objects around the provided location. | |
| FMassSmartObjectRequestID | FindCandidatesAsync
(
const FMassEntityHandle RequestingEntity, |
Creates an async request to build a list of compatible smart objects around the provided lane location. | |
| const FMassSmartObjectCandidateSlots * | GetRequestCandidates
(
const FMassSmartObjectRequestID& RequestID |
Provides the result of a previously created request from FindCandidatesAsync to indicate if it has been processed and the results can be used by ClaimCandidate. | |
| void | ReleaseSmartObject
(
const FMassEntityHandle Entity, |
Releases a claimed/in-use smart object and update user fragment. | |
| void | RemoveRequest
(
const FMassSmartObjectRequestID& RequestID |
Deletes the request associated to the specified identifier | |
| bool | StartUsingSmartObject
(
const FMassEntityHandle Entity, |
Activates the mass gameplay behavior associated to the previously claimed smart object. | |
| void | StopUsingSmartObject
(
const FMassEntityHandle Entity, |
Deactivates the mass gameplay behavior started using StartUsingSmartObject. |