public ResetComponent(List <IGraphicObject> objects, SpriteBatch sbatch, VoidFunctionPointer resetPointer) { _processor = new ResetProcessor(); _updater = new ResetUpdater(resetPointer); _renderer = new ResetRenderer(objects, sbatch); IsActive = true; }
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(); }
public ResetUpdater(VoidFunctionPointer resetPointer) { IsReset = false; _resetPointer = resetPointer; }