public TweenSharkCore(ITweenSharkTick ticker) { _registeredPropertyTweeners = new Dictionary <string, Type>(); _ticker = ticker; _ticker.Run(Tick); }
public static void Initialize(ITweenSharkTick ticker, ILogger logger) { Logger = logger; if (_core == null) { _core = new TweenSharkCore(ticker); // register tweener for ints RegisterPropertyTweener(typeof(SignedByteTweener), typeof(SByte)); RegisterPropertyTweener(typeof(SignedInt16Tweener), typeof(Int16)); RegisterPropertyTweener(typeof(SignedInt32Tweener), typeof(Int32)); RegisterPropertyTweener(typeof(SignedInt64Tweener), typeof(Int64)); // register tweener for unsigned ints RegisterPropertyTweener(typeof(UnsignedByteTweener), typeof(Byte)); RegisterPropertyTweener(typeof(UnsignedInt16Tweener), typeof(UInt16)); RegisterPropertyTweener(typeof(UnsignedInt32Tweener), typeof(UInt32)); RegisterPropertyTweener(typeof(UnsignedInt64Tweener), typeof(UInt64)); // register tweener for floats RegisterPropertyTweener(typeof(FloatTweener), typeof(Single)); // register tweener for doubles RegisterPropertyTweener(typeof(DoubleTweener), typeof(Double)); } }