Пример #1
0
 public void AddUpdatable(IUpdatable updatable)
 {
     if (updatables.IsNull())
     {
         updatables = new UpdatableList();
     }
     updatables.Add(updatable);
 }
Пример #2
0
        public DefaultAppImp()
        {
            m_timerManager = CreateTimerManager();
            m_notificationCenter = CreateNotificationCenter();
            m_processor = CreateCommandProcessor();

            m_updatables = new UpdatableList(2);
            m_updatables.Add(m_timerManager);
            m_updatables.Add(UpdateBindings);
        }
Пример #3
0
        public Screen(float width, float height)
        {
            this.width  = width;
            this.height = height;

            timerManager = TimerManager.Null;

            updatables    = UpdatableList.Null;
            drawables     = DrawableList.Null;
            eventHandlers = EventHandlerList.Null;

            mRootView = CreateRootView();
        }
        public Screen(float width, float height)
        {
            this.width = width;
            this.height = height;

            timerManager = TimerManager.Null;

            updatables = UpdatableList.Null;
            drawables = DrawableList.Null;
            eventHandlers = EventHandlerList.Null;

            mRootView = CreateRootView();
        }
Пример #5
0
        public Application(ApplicationInfo info)
        {
            nativeInterface = info.nativeInterface;
            width           = info.width;
            height          = info.height;
            realWidth       = info.realWidth;
            realHeight      = info.realHeight;

            sharedApplication = this;

            context    = new Context();
            updatables = new UpdatableList(1);
            drawables  = new DrawableList(1);

            cmdLine = CreateCommandLine();
            cmdLine.Parse(info.args);
        }
Пример #6
0
 public ScreenManager()
 {
     screens    = new List <Screen>();
     updatables = new UpdatableList();
     drawables  = new DrawableList();
 }
 public void AddUpdatable(IUpdatable updatable)
 {
     if (updatables.IsNull())
     {
         updatables = new UpdatableList();
     }
     updatables.Add(updatable);
 }
 public ScreenManager()
 {
     screens = new List<Screen>();
     updatables = new UpdatableList();
     drawables = new DrawableList();
 }
        public Application(ApplicationInfo info)
        {
            nativeInterface = info.nativeInterface;
            width = info.width;
            height = info.height;
            realWidth = info.realWidth;
            realHeight = info.realHeight;

            sharedApplication = this;

            context = new Context();
            updatables = new UpdatableList(1);
            drawables = new DrawableList(1);

            cmdLine = CreateCommandLine();
            cmdLine.Parse(info.args);
        }