Represents a single current environment option of an NPC, including the decision to be made and the associated game object.
More...
|
IDecision | decision |
| The decision to be made in this action.
|
|
GameObject | associatedGameObject |
| The game object associated with this environment option. This could be an object that the NPC interacts with or observes, such as a door, item, or another character.
|
|
Represents a single current environment option of an NPC, including the decision to be made and the associated game object.
◆ CurrentEnvironment()
CurrentEnvironment.CurrentEnvironment |
( |
IDecision |
decision, |
|
|
GameObject |
associatedGameObject |
|
) |
| |
Initializes a new instance of the CurrentEnvironment class.
- Parameters
-
decision | |
associatedGameObject | |
◆ ToDTO()
Converts the current environment to a CurrentEnvironmentDTO DTO representation. /// This DTO includes the decision's pretty name and the distance to the associated game object from the NPC's position. The distance is calculated as the Euclidean distance between the NPC's position and the associated game object's position. If the associated game object is null, the distance is set to 0.
- Parameters
-
- Returns
- CurrentEnvironmentDTO object
◆ associatedGameObject
GameObject CurrentEnvironment.associatedGameObject |
The game object associated with this environment option. This could be an object that the NPC interacts with or observes, such as a door, item, or another character.
◆ decision
The decision to be made in this action.
The documentation for this class was generated from the following file: