Skip to content

Commit

Permalink
Moved
Browse files Browse the repository at this point in the history
  • Loading branch information
Xlinka committed May 1, 2024
1 parent 2ed68d9 commit f646200
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 27 deletions.
File renamed without changes.
File renamed without changes.
16 changes: 7 additions & 9 deletions ProjectObsidian/ProtoFlux/Users/Status/IsUserInSeatedMode.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
using FrooxEngine;
using FrooxEngine.ProtoFlux;
using ProtoFlux.Core;
using ProtoFlux.Core;
using ProtoFlux.Runtimes.Execution;

namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Locomotion
namespace FrooxEngine.ProtoFlux.Status
{
[ContinuouslyChanging]
[NodeCategory("Obsidian/Locomotion")]
public class IsUserInSeatedModeNode : ValueFunctionNode<FrooxEngineContext, bool>
[NodeCategory("ProtoFlux/Obsidian/Status")]
public class IsUserInSeatedModeNode : ValueFunctionNode<ExecutionContext, bool>
{
public readonly ObjectInput<User> User;

protected override bool Compute(FrooxEngineContext context)
protected override bool Compute(ExecutionContext context)
{
var user = User.Evaluate(context);
return user != null && user.InputInterface.SeatedMode;
User user = User.Evaluate(context);
return user == null ? false : user.InputInterface.SeatedMode;
}
}
}
18 changes: 0 additions & 18 deletions ProtoFlux/Users/Status/IsUserInSeatedMode.cs

This file was deleted.

0 comments on commit f646200

Please sign in to comment.