upd
This commit is contained in:
15
Code/Inventory/Usable/UseSystem.cs
Normal file
15
Code/Inventory/Usable/UseSystem.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Sasalka;
|
||||
|
||||
public static class UseSystem
|
||||
{
|
||||
public static void TryUse( IUseContext context )
|
||||
{
|
||||
foreach ( var useable in context.GetUsables() )
|
||||
{
|
||||
if ( useable.CanUse() )
|
||||
{
|
||||
useable.Use();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user