Example #1
0
        public Zoom(ICore core)
        {
            if (core == null)
            {
                throw new ArgumentNullException(nameof(core));
            }

            _core = core;
            _core.Layers.Reset(NonNullList.Of(0));
            _core.DeactivateActions();
            _core.ActivateActions(NonNullList.Of(
                                      DefaultActions.Up,
                                      DefaultActions.Left,
                                      DefaultActions.Down,
                                      DefaultActions.Button1
                                      ));

            _resourcePool = new ResourcePool();
        }