public static IGameTickContainer AddIntervalTicker(this IGameTickContainer gameTickContainer, int interval, Action callback) { gameTickContainer.AddTicker(new TimerTicker(interval, callback)); return(gameTickContainer); }
public static IGameTickContainer AddTicker(this IGameTickContainer gameTickContainer, Action callback) { gameTickContainer.AddTicker(new CustomTicker(callback)); return(gameTickContainer); }
public static IGameTickContainer AddIntervalTicker(this IGameTickContainer gameTickContainer, int interval, ITickable ticker) { gameTickContainer.AddTicker(new TimerTicker(interval, ticker.Tick)); return(gameTickContainer); }
public static IGameTickContainer AddTicker(this IGameTickContainer gameTickContainer, ITickable ticker) { gameTickContainer.Tickers.Add(ticker); return(gameTickContainer); }