Obsolete many AI classes in preparation for rewrite
This commit is contained in:
		
							parent
							
								
									5764b28a4f
								
							
						
					
					
						commit
						b3af672199
					
				
							
								
								
									
										107313
									
								
								Assets/Scenes/NewBehaviourSystemTestingSceneDeleteThis.unity
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107313
									
								
								Assets/Scenes/NewBehaviourSystemTestingSceneDeleteThis.unity
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -0,0 +1,7 @@ | |||||||
|  | fileFormatVersion: 2 | ||||||
|  | guid: 35f2aaa7cb89b4142bf7d3fe64bbc9eb | ||||||
|  | DefaultImporter: | ||||||
|  |   externalObjects: {} | ||||||
|  |   userData:  | ||||||
|  |   assetBundleName:  | ||||||
|  |   assetBundleVariant:  | ||||||
| @ -1,9 +1,9 @@ | |||||||
| using System; | using System; | ||||||
| using UnityEngine; |  | ||||||
| using Saltosion.OneWeapon.Enemies; | using Saltosion.OneWeapon.Enemies; | ||||||
| 
 | 
 | ||||||
| namespace Saltosion.OneWeapon.AI { | namespace Saltosion.OneWeapon.AI { | ||||||
|     [Serializable] |     [Serializable] | ||||||
|  |     [Obsolete] | ||||||
|     public class BehaviourBranch : BehaviourNode { |     public class BehaviourBranch : BehaviourNode { | ||||||
|         public Trigger Trigger; |         public Trigger Trigger; | ||||||
|         // FIXME: Change these  from arrays to just single ones |         // FIXME: Change these  from arrays to just single ones | ||||||
|  | |||||||
| @ -1,9 +1,9 @@ | |||||||
| using System; | using System; | ||||||
| using UnityEngine; |  | ||||||
| using Saltosion.OneWeapon.Enemies; | using Saltosion.OneWeapon.Enemies; | ||||||
| 
 | 
 | ||||||
| namespace Saltosion.OneWeapon.AI { | namespace Saltosion.OneWeapon.AI { | ||||||
|     [Serializable] |     [Serializable] | ||||||
|  |     [Obsolete] | ||||||
|     public class BehaviourLeaf : BehaviourNode { |     public class BehaviourLeaf : BehaviourNode { | ||||||
|         public AIBehaviour[] Behaviours; |         public AIBehaviour[] Behaviours; | ||||||
|         public bool IsLeaf { get { return Behaviours.Length > 0; } } |         public bool IsLeaf { get { return Behaviours.Length > 0; } } | ||||||
|  | |||||||
| @ -4,6 +4,7 @@ using Saltosion.OneWeapon.Enemies; | |||||||
| 
 | 
 | ||||||
| namespace Saltosion.OneWeapon.AI { | namespace Saltosion.OneWeapon.AI { | ||||||
|     [Serializable] |     [Serializable] | ||||||
|  |     [Obsolete] | ||||||
|     public abstract class BehaviourNode : MonoBehaviour { |     public abstract class BehaviourNode : MonoBehaviour { | ||||||
|         /* Returns true if any action was taken. */ |         /* Returns true if any action was taken. */ | ||||||
|         public abstract bool Execute(Enemy subject); |         public abstract bool Execute(Enemy subject); | ||||||
|  | |||||||
| @ -1,6 +1,4 @@ | |||||||
| using System.Collections; | using UnityEngine; | ||||||
| using System.Collections.Generic; |  | ||||||
| using UnityEngine; |  | ||||||
| using Saltosion.OneWeapon.Player; | using Saltosion.OneWeapon.Player; | ||||||
| using Saltosion.OneWeapon.Enemies; | using Saltosion.OneWeapon.Enemies; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,7 +1,8 @@ | |||||||
|  | using System; | ||||||
| using UnityEngine; | using UnityEngine; | ||||||
| using Saltosion.OneWeapon.AI; |  | ||||||
| 
 | 
 | ||||||
| namespace Saltosion.OneWeapon.AI { | namespace Saltosion.OneWeapon.AI { | ||||||
|  |     [Obsolete] | ||||||
|     [RequireComponent(typeof(AI.Behaviours.Follow), typeof(AI.Triggers.EnemySighted))] |     [RequireComponent(typeof(AI.Behaviours.Follow), typeof(AI.Triggers.EnemySighted))] | ||||||
|     public class EnemyFollower : MonoBehaviour { |     public class EnemyFollower : MonoBehaviour { | ||||||
|         public AI.Behaviours.Follow Follow; |         public AI.Behaviours.Follow Follow; | ||||||
|  | |||||||
| @ -1,8 +1,9 @@ | |||||||
|  | using System; | ||||||
| using UnityEngine; | using UnityEngine; | ||||||
| using Saltosion.OneWeapon.AI; |  | ||||||
| 
 | 
 | ||||||
| namespace Saltosion.OneWeapon.AI { | namespace Saltosion.OneWeapon.AI { | ||||||
|     [RequireComponent(typeof(AI.Behaviours.Follow), typeof(AI.Triggers.PlayerSighted))] |     [RequireComponent(typeof(AI.Behaviours.Follow), typeof(AI.Triggers.PlayerSighted))] | ||||||
|  |     [Obsolete] | ||||||
|     public class PlayerFollower : MonoBehaviour { |     public class PlayerFollower : MonoBehaviour { | ||||||
|         public AI.Behaviours.Follow Follow; |         public AI.Behaviours.Follow Follow; | ||||||
|         public AI.Triggers.PlayerSighted PlayerSighted; |         public AI.Triggers.PlayerSighted PlayerSighted; | ||||||
|  | |||||||
| @ -1,4 +1,3 @@ | |||||||
| using UnityEngine; |  | ||||||
| using Saltosion.OneWeapon.Utils; | using Saltosion.OneWeapon.Utils; | ||||||
| using Saltosion.OneWeapon.Enemies; | using Saltosion.OneWeapon.Enemies; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user