Virtu/Virtu/Services/MachineService.cs
Sean Fausett b24bcd767e Added DisposableBase to library.
Replaced Machine.GetCards<T> with Machine.Slots.OfType<T>.
2012-06-18 14:23:26 +12:00

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;
}
}