mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-06-02 12:41:31 +00:00
b24bcd767e
Replaced Machine.GetCards<T> with Machine.Slots.OfType<T>.
21 lines
569 B
C#
21 lines
569 B
C#
using System;
|
|
using Jellyfish.Library;
|
|
|
|
namespace Jellyfish.Virtu.Services
|
|
{
|
|
public abstract class MachineService : DisposableBase
|
|
{
|
|
protected MachineService(Machine machine)
|
|
{
|
|
Machine = machine;
|
|
|
|
_debugService = new Lazy<DebugService>(() => Machine.Services.GetService<DebugService>());
|
|
}
|
|
|
|
protected Machine Machine { get; private set; }
|
|
protected DebugService DebugService { get { return _debugService.Value; } }
|
|
|
|
private Lazy<DebugService> _debugService;
|
|
}
|
|
}
|