16 lines
227 B
C#
16 lines
227 B
C#
namespace Sasalka;
|
|
|
|
public static class UseSystem
|
|
{
|
|
public static void TryUse( IUseContext context )
|
|
{
|
|
foreach ( var useable in context.GetUsables() )
|
|
{
|
|
if ( useable.CanUse() )
|
|
{
|
|
useable.Use();
|
|
}
|
|
}
|
|
}
|
|
}
|