2019-04-12 10:09:54 +02:00
|
|
|
using System;
|
2018-10-30 20:05:06 +01:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace UnityAtoms
|
|
|
|
{
|
2019-10-15 19:19:44 +02:00
|
|
|
/// <summary>
|
2019-11-26 20:12:54 +01:00
|
|
|
/// Base abstract class for Actions. Inherits from `BaseAtom`.
|
|
|
|
/// </summary>
|
|
|
|
public abstract class AtomAction : BaseAtom
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Perform the Action.
|
|
|
|
/// </summary>
|
2020-03-09 00:16:40 +01:00
|
|
|
public virtual void Do() { }
|
2019-11-26 20:12:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Generic abstract base class for Actions. Inherits from `AtomAction`.
|
2019-10-15 19:19:44 +02:00
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="T1">The type for this Action.</typeparam>
|
2019-11-26 20:12:54 +01:00
|
|
|
public abstract class AtomAction<T1> : AtomAction
|
2018-10-30 20:05:06 +01:00
|
|
|
{
|
2019-10-15 20:44:25 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Perform the Action.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="t1">The first parameter.</param>
|
2020-03-09 00:16:40 +01:00
|
|
|
public virtual void Do(T1 t1) => base.Do();
|
2018-10-30 20:05:06 +01:00
|
|
|
}
|
2019-04-07 11:10:09 +02:00
|
|
|
}
|