예제 #1
0
 public ResetComponent(List <IGraphicObject> objects, SpriteBatch sbatch, VoidFunctionPointer resetPointer)
 {
     _processor = new ResetProcessor();
     _updater   = new ResetUpdater(resetPointer);
     _renderer  = new ResetRenderer(objects, sbatch);
     IsActive   = true;
 }
예제 #2
0
        public RootComponent(GraphicsDevice graphics, SpriteBatch sbatch)
        {
            _gp = graphics;
            _sb = sbatch;

            _resetPointer  = new VoidFunctionPointer(Reset);
            _reloadPointer = new VoidFunctionCodeParamPointer(Reload);
            // current package set to Test
            _currPackage = PackageCode.Test;

            _router    = new GameRouter();
            _processor = new RootProcessor();
            _updater   = new RootUpdater(_router);
            _renderer  = new RootRenderer();
            LoadComponents(_gp, _sb);
            LoadGame();
        }
예제 #3
0
 public ResetUpdater(VoidFunctionPointer resetPointer)
 {
     IsReset       = false;
     _resetPointer = resetPointer;
 }