public static async Task AddFolder( [InputPin(PropertyMode = PropertyMode.Default)] string elementPath ) { var path = new PosixPath(elementPath); string containerPath = path.RemoveLastElement().ToPosixPath(); string displayName = path.LastElement; var containerTrace = await worldViewService.ResolvePath(containerPath); await worldViewService.AddFolder(containerTrace, displayName); }
public static async Task AddCollisionObject( [InputPin(PropertyMode = PropertyMode.Default)] string elementPath, [InputPin(PropertyMode = PropertyMode.Allow)] CollisionObject collisionObject, [InputPin(PropertyMode = PropertyMode.Default)] bool transient = false ) { var path = new PosixPath(elementPath); string containerPath = path.RemoveLastElement().ToPosixPath(); string displayName = path.LastElement; var containerTrace = await worldViewService.ResolvePath(containerPath); await worldViewService.AddCollisionObject(containerTrace, collisionObject.ToModel(), displayName, transient); }