상속: SubscribableManager
예제 #1
0
 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);
 }
예제 #2
0
 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;
 }
예제 #3
0
 public HaxxitGameState()
 {
     DefaultSubscribableManager subscribable_manager = new DefaultSubscribableManager();
     subscribable_manager.OnSubscribe += SubscribeAll;
     _mediator_manager = new MediatorManager(subscribable_manager);
 }