示例#1
0
 public Items(MessageBus bus)
 {
     this.bus   = bus;
     this.items = new Dictionary <string, Item>();
 }
示例#2
0
 public RoomMap(MessageBus bus)
 {
     this.bus = bus;
 }
示例#3
0
 public Point(MessageBus bus, Room room)
 {
     this.bus     = bus;
     this.room    = room;
     this.targets = new Dictionary <string, Point>();
 }
示例#4
0
 public EndOfGame(MessageBus bus)
 {
     this.cts = new CancellationTokenSource();
     this.sub = bus.Subscribe <EndOfGameMessage>(m => this.OnEnd(bus, m.Text));
 }