Ejemplo n.º 1
0
        public IController GetInputState(int frame)
        {
            if (frame < FrameCount && frame >= 0)
            {
                int getframe;

                if (_loopOffset.HasValue)
                {
                    if (frame < _log.Count)
                    {
                        getframe = frame;
                    }
                    else
                    {
                        getframe = ((frame - _loopOffset.Value) % (_log.Count - _loopOffset.Value)) + _loopOffset.Value;
                    }
                }
                else
                {
                    getframe = frame;
                }

                var adapter = new BkmControllerAdapter
                {
                    Definition = Global.MovieSession.MovieControllerAdapter.Definition
                };
                adapter.SetControllersAsMnemonic(_log[getframe]);
                return(adapter);
            }

            return(null);
        }
        public BkmControllerAdapter GetInputState(int frame, ControllerDefinition definition, string sytemId)
        {
            if (frame < InputLogLength && frame >= 0)
            {
                var adapter = new BkmControllerAdapter(definition, sytemId);
                adapter.SetControllersAsMnemonic(_log[frame]);
                return(adapter);
            }

            return(null);
        }
Ejemplo n.º 3
0
        public BkmControllerAdapter GetInputState(int frame)
        {
            if (frame < InputLogLength && frame >= 0)
            {
                var adapter = new BkmControllerAdapter
                {
                    Definition = Global.MovieSession.MovieController.Definition
                };
                adapter.SetControllersAsMnemonic(_log[frame]);
                return(adapter);
            }

            return(null);
        }
Ejemplo n.º 4
0
		public IController GetInputState(int frame)
		{
			if (frame < FrameCount && frame >= 0)
			{

				int getframe;

				if (_loopOffset.HasValue)
				{
					if (frame < _log.Count)
					{
						getframe = frame;
					}
					else
					{
						getframe = ((frame - _loopOffset.Value) % (_log.Count - _loopOffset.Value)) + _loopOffset.Value;
					}
				}
				else
				{
					getframe = frame;
				}

				var adapter = new BkmControllerAdapter
				{
					Type = Global.MovieSession.MovieControllerAdapter.Type
				};
				adapter.SetControllersAsMnemonic(_log[getframe]);
				return adapter;
			}

			return null;
		}