AI operating reactors & railguns, misc AI improvements
This commit is contained in:
@@ -38,8 +38,7 @@ namespace Barotrauma.Items.Components
|
||||
/// <summary>
|
||||
/// The base class for components holding the different functionalities of the item
|
||||
/// </summary>
|
||||
class
|
||||
ItemComponent : IPropertyObject
|
||||
class ItemComponent : IPropertyObject
|
||||
{
|
||||
protected Item item;
|
||||
|
||||
@@ -400,6 +399,13 @@ namespace Barotrauma.Items.Components
|
||||
/// <param name="modifier"> A vector that can be used to pass additional information to the components</param>
|
||||
public virtual void ItemActivate(Item item, Vector2 modifier) { }
|
||||
|
||||
|
||||
/// <returns>true if the operation was completed</returns>
|
||||
public virtual bool AIOperate(float deltaTime, Character character, AIObjective objective)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//called when isActive is true and condition > 0.0f
|
||||
public virtual void Update(float deltaTime, Camera cam) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user