You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			618 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			22 lines
		
	
	
		
			618 B
		
	
	
	
		
			C#
		
	
| using CleverCrow.Fluid.BTs.Tasks;
 | |
| 
 | |
| namespace CleverCrow.Fluid.BTs.TaskParents {
 | |
|     public class TaskRoot : TaskParentBase {
 | |
|         public override string Name { get; set; } = "Root";
 | |
|         protected override int MaxChildren { get; } = 1;
 | |
|         public override string IconPath { get; } = $"{PACKAGE_ROOT}/DownArrow.png";
 | |
| 
 | |
|         protected override TaskStatus OnUpdate () {
 | |
|             if (Children.Count == 0) {
 | |
|                 return TaskStatus.Success;
 | |
|             }
 | |
| 
 | |
|             var child = Children[0];
 | |
|             return child.Update();
 | |
|         }
 | |
| 
 | |
|         public override void End () {
 | |
|         }
 | |
|     }
 | |
| }
 |