public LagCompensationSystemGroup(Contexts contexts, ITimeMachine timeMachine, LagCompensationSystem[] lagCompensationSystems, IServerSnapshotHistory serverSnapshotHistory) { this.contexts = contexts; this.timeMachine = timeMachine; this.lagCompensationSystems = lagCompensationSystems; this.serverSnapshotHistory = serverSnapshotHistory; }
public void RegisterTimeMachine(ITimeMachine roll) { if (roll != null && _timeMachineHash.Add(roll)) { ; } { _allTimeMachines = null; } }
public Warrior(string warriorName, ITimeMachine timeMachine, int life = 100) { _logger = LogManager.GetLogger(typeof(Warrior)); _warriorName = warriorName; if (timeMachine == null) { throw new ArgumentNullException("timeMachine"); } _timeMachine = timeMachine; WarriorState = new WarriorState { Life = life }; }
public Humanize(ITimeMachine timeMachine) { TimeMachine = timeMachine; }
public void UnregisterTimeMachine(ITimeMachine timeMachine) { _timeMachineList.Remove(timeMachine); }
public void RegistertimeMachine(ITimeMachine timeMachine) { _timeMachineList.Add(timeMachine); }
/// <summary> /// Creates a new instance of <see cref="ParkingHouse"/>. /// </summary> /// <param name="time">Concept of time used by the parking house.</param> /// <param name="info">Parking house setup.</param> public ParkingHouse(ITimeMachine time, ParkingHouseInformation info) { _time = time; _info = info; }