public Map(int x_size, int y_size, ushort initial_silicoins=0, ushort total_spawn_weights=0) { DefaultSubscribableManager subscribable_manager = new DefaultSubscribableManager(); subscribable_manager.OnSubscribe += SubscribeAll; _mediator_manager = new MediatorManager(subscribable_manager); InitializeMap(x_size, y_size, initial_silicoins, total_spawn_weights); }
public UndoStack(int max_size, IMediator mediator=null) { _max_size = max_size; undo_stack = new Stack<UndoEventArgs>(); DefaultSubscribableManager subscribable_manager = new DefaultSubscribableManager(); subscribable_manager.OnSubscribe += SubscribeAll; _mediator_manager = new MediatorManager(subscribable_manager); _mediator_manager.Mediator = mediator; }
public HaxxitGameState() { DefaultSubscribableManager subscribable_manager = new DefaultSubscribableManager(); subscribable_manager.OnSubscribe += SubscribeAll; _mediator_manager = new MediatorManager(subscribable_manager); }