mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Ray -> Box intersection works. * Turret AI finished. * Turret Works :D * Light masks can now be rotated. * Shoddy angle MoveTowards works. * Shoddy Vector2 MoveTowards works. * And pretty broken Quaternion version.. * Slept on it, rotation works good enough now. * Fixed nuget dependencies. * Moved AimShootLifeProcessor.cs to content.
27 lines
720 B
C#
27 lines
720 B
C#
using SS14.Shared.Interfaces.GameObjects;
|
|
|
|
namespace SS14.Server.AI
|
|
{
|
|
/// <summary>
|
|
/// Base class for all AI Processors.
|
|
/// </summary>
|
|
public abstract class AiLogicProcessor
|
|
{
|
|
/// <summary>
|
|
/// Radius in meters that the AI can "see".
|
|
/// </summary>
|
|
public float VisionRadius { get; set; }
|
|
|
|
/// <summary>
|
|
/// Entity this AI is controlling.
|
|
/// </summary>
|
|
public IEntity SelfEntity { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gives life to the AI.
|
|
/// </summary>
|
|
/// <param name="frameTime">Time since last update in seconds.</param>
|
|
public abstract void Update(float frameTime);
|
|
}
|
|
}
|