Obsolete many AI classes in preparation for rewrite

This commit is contained in:
Jens Pitkänen 2019-08-14 17:48:42 +03:00
parent 5764b28a4f
commit b3af672199
9 changed files with 107328 additions and 8 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 35f2aaa7cb89b4142bf7d3fe64bbc9eb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +1,9 @@
using System;
using UnityEngine;
using Saltosion.OneWeapon.Enemies;
namespace Saltosion.OneWeapon.AI {
[Serializable]
[Obsolete]
public class BehaviourBranch : BehaviourNode {
public Trigger Trigger;
// FIXME: Change these from arrays to just single ones

View File

@ -1,9 +1,9 @@
using System;
using UnityEngine;
using Saltosion.OneWeapon.Enemies;
namespace Saltosion.OneWeapon.AI {
[Serializable]
[Obsolete]
public class BehaviourLeaf : BehaviourNode {
public AIBehaviour[] Behaviours;
public bool IsLeaf { get { return Behaviours.Length > 0; } }

View File

@ -4,6 +4,7 @@ using Saltosion.OneWeapon.Enemies;
namespace Saltosion.OneWeapon.AI {
[Serializable]
[Obsolete]
public abstract class BehaviourNode : MonoBehaviour {
/* Returns true if any action was taken. */
public abstract bool Execute(Enemy subject);

View File

@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using Saltosion.OneWeapon.Player;
using Saltosion.OneWeapon.Enemies;

View File

@ -1,7 +1,8 @@
using System;
using UnityEngine;
using Saltosion.OneWeapon.AI;
namespace Saltosion.OneWeapon.AI {
[Obsolete]
[RequireComponent(typeof(AI.Behaviours.Follow), typeof(AI.Triggers.EnemySighted))]
public class EnemyFollower : MonoBehaviour {
public AI.Behaviours.Follow Follow;

View File

@ -1,8 +1,9 @@
using System;
using UnityEngine;
using Saltosion.OneWeapon.AI;
namespace Saltosion.OneWeapon.AI {
[RequireComponent(typeof(AI.Behaviours.Follow), typeof(AI.Triggers.PlayerSighted))]
[Obsolete]
public class PlayerFollower : MonoBehaviour {
public AI.Behaviours.Follow Follow;
public AI.Triggers.PlayerSighted PlayerSighted;

View File

@ -1,4 +1,3 @@
using UnityEngine;
using Saltosion.OneWeapon.Utils;
using Saltosion.OneWeapon.Enemies;