Beispiel #1
0
 public MessageReceiver(IMyMultiplayer multiplayer, IMyUtilities utilities)
 {
     this.multiplayer        = multiplayer;
     this.utilities          = utilities;
     this.messageLogger      = new MessageLogger();
     this.spawnToolsReplacer = new SpawnToolsReplacer();
 }
Beispiel #2
0
 public override void Init(MyObjectBuilder_SessionComponent sessionComponent)
 {
     base.Init(sessionComponent);
     this.spawnToolsReplacer = new SpawnToolsReplacer();
     this.timer          = new Timer();
     this.timer.Elapsed += this.TimerElapsedForInit;
     this.timer.Interval = 1000;
     this.timer.Enabled  = true;
 }