Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teleport condition TRNG-102 #40

Closed
wants to merge 8 commits into from

Conversation

Gusinuhe
Copy link
Contributor

@Gusinuhe Gusinuhe commented Mar 8, 2021

Description

This PR implements a new Teleport Condition and a new ITeleportProperty.
The Teleport Condition detects when an XRig was teleported into the desired TeleportPoint.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Add a teleport condition in any step and test either teleporting and skipping the step on all available rigs.

Related To

Known Issues

Somehow the validation system thinks there is something wrong with the property but it does not provide any feedback 🤔

image

Runtime/Properties/ITeleportProperty.cs Outdated Show resolved Hide resolved
Runtime/Properties/ITeleportProperty.cs Outdated Show resolved Hide resolved
/// <inheritdoc />
protected override bool CheckIfCompleted()
{
return Data.TeleportPoint.Value.WasUsedToTeleport;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of having a set value, why dont we use events?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, we do, the events set that property to true.
The flag is required to know that the event was fired.

Gustavo Quiroz and others added 2 commits March 10, 2021 16:18
Co-authored-by: Thomas W. <tomwim@users.noreply.github.com>
namespace Innoactive.Creator.Core.Conditions
{
/// <summary>
/// Condition which is completed when an 'XR Rig' gets teleported into the referenced <see cref="ITeleportProperty"/>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not have to be an XR Rig, could also be something else, like a regular camera or trainee object

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same in the ITeleportProperty, but those are just details

@tomwim
Copy link
Contributor

tomwim commented Mar 12, 2021

Pipeline fails at "Running Tests" which sometimes happens for whatever reason. So you might just have to rerun it. If this does not work we have to give it a look

Runtime/Properties/ITeleportProperty.cs Outdated Show resolved Hide resolved
Runtime/Properties/ITeleportProperty.cs Outdated Show resolved Hide resolved
Gustavo Quiroz and others added 2 commits March 13, 2021 11:09
Co-authored-by: Thomas W. <tomwim@users.noreply.github.com>
Co-authored-by: Thomas W. <tomwim@users.noreply.github.com>
@SimonTheSourcerer
Copy link
Contributor

before we merge this...

@SimonTheSourcerer
Copy link
Contributor

wtf never wanted to close it.

Before we merge this I want to rise the question: Is this part of basic conditions/behaviors? Because for me the whole teleport thingi is actually an interaction which also should be part of basic-interaction.

@Gusinuhe
Copy link
Contributor Author

wtf never wanted to close it.

Before we merge this I want to rise the question: Is this part of basic conditions/behaviors? Because for me the whole teleport thingi is actually an interaction which also should be part of basic-interaction.

Totally agree, even with closing this PR

@Gusinuhe
Copy link
Contributor Author

@Gusinuhe Gusinuhe closed this Mar 15, 2021
@Gusinuhe Gusinuhe deleted the feature/teleport-condition-TRNG-102 branch March 15, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants