Skip to content

Commit

Permalink
Update IMechanism.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogoson committed Jun 30, 2018
1 parent b1cdef1 commit 66c0113
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions Assets/MGS-CommonCode/Machinery/IMechanism.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,74 @@ public interface ITriggerMechanism : IMechanism
bool IsTriggered { get; }
#endregion
}

/// <summary>
/// Mechanism with engaged mechanisms.
/// </summary>
public interface IEngageMechanism : IMechanism
{
/// <summary>
/// Build engage for mechanism.
/// </summary>
/// <param name="engage">Engage mechanism.</param>
void BuildEngage(IEngagedMechanism engage);

/// <summary>
/// Break engage.
/// </summary>
/// <param name="engage">Engage mechanism.</param>
void BreakEngage(IEngagedMechanism engage);
}

/// <summary>
/// Mechanism can be engaged to power mechanism.
/// </summary>
public interface IEngagedMechanism : IMechanism
{
/// <summary>
/// Engage this mechanism to power mechanism.
/// </summary>
/// <param name="engage">Power mechanism.</param>
void EngageTo(IEngageMechanism engage);

/// <summary>
/// Break engage from power mechanism.
/// </summary>
void EngageBreak();
}

/// <summary>
/// Mechanism with coaxed mechanisms.
/// </summary>
public interface ICoaxeMechanism : IMechanism
{
/// <summary>
/// Build coaxe for mechanism.
/// </summary>
/// <param name="coaxe">Coaxe mechanism.</param>
void BuildCoaxed(ICoaxedMechanism coaxe);

/// <summary>
/// Break coaxed.
/// </summary>
/// <param name="coaxe">Coaxe mechanism.</param>
void BreakCoaxed(ICoaxedMechanism coaxe);
}

/// <summary>
/// Mechanism can be coaxed to power mechanism.
/// </summary>
public interface ICoaxedMechanism : IMechanism
{
/// <summary>
/// Coaxe this mechanism to power mechanism.
/// </summary>
/// <param name="coaxe">Power mechanism.</param>
void CoaxeTo(ICoaxeMechanism coaxe);

/// <summary>
/// Break coaxed from power mechanism.
/// </summary>
void CoaxeBreak();
}
}

0 comments on commit 66c0113

Please sign in to comment.