示例#1
0
        private static void SetupMembers()
        {
            CurrentScene = null;
            Logger       = new Log(core.GetLogger());
            Keyboard     = new Keyboard(core.GetKeyboard());

            if (core.GetMouse() != null)
            {
                Mouse = new Mouse(core.GetMouse());
            }

            if (core.GetFile() != null)
            {
                File = new File(core.GetFile());
            }

            if (core.GetJoystickContainer() != null)
            {
                JoystickContainer = new JoystickContainer(core.GetJoystickContainer());
            }

            Sound               = new Sound(core.GetSound());
            Graphics            = new Graphics(core.GetGraphics_Imp());
            ObjectSystemFactory = new asd.ObjectSystemFactory(core.GetObjectSystemFactory());
            Profiler            = new Profiler(core.GetProfiler());
            AnimationSystem     = new AnimationSystem(core.GetAnimationSyatem());

            layerProfiler = core.GetLayerProfiler();

            ChangesToBeCommited = new Queue <ICommitable>();
        }
示例#2
0
文件: Engine.cs 项目: Pctg-x8/Altseed
        private static void SetupMembers()
        {
            CurrentScene = null;
            Logger = new Log(core.GetLogger());
            Keyboard = new Keyboard(core.GetKeyboard());

            if(core.GetMouse() != null)
            {
                Mouse = new Mouse(core.GetMouse());
            }

            if(core.GetFile() != null)
            {
                File = new File(core.GetFile());
            }

            if(core.GetJoystickContainer() != null)
            {
                JoystickContainer = new JoystickContainer(core.GetJoystickContainer());
            }

            Sound = new Sound(core.GetSound());
            Graphics = new Graphics(core.GetGraphics_Imp());
            ObjectSystemFactory = new asd.ObjectSystemFactory(core.GetObjectSystemFactory());
            Profiler = new Profiler(core.GetProfiler());
            AnimationSystem = new AnimationSystem(core.GetAnimationSyatem());

            layerProfiler = core.GetLayerProfiler();
        }