Пример #1
0
        public override IAwaitable TestExecute(IServices services)
        {
            FieldObject currentObject = ServiceId.Field[services].Engine.CurrentObject;

            currentObject.Model.SetDirection(Degrees.FromAngle256(_angle.Int32(services)));
            return(DummyAwaitable.Instance);
        }
Пример #2
0
        public override IAwaitable TestExecute(IServices services)
        {
            var currentObject = ServiceId.Field[services].Engine.CurrentObject;

            var degrees       = Degrees.FromAngle256(_angle.Int32(services));
            var frameDuration = _frameDuration.Int32(services);

            currentObject.Model.Rotate(-degrees, frameDuration);

            return(DummyAwaitable.Instance);
        }