public ProducerController(Producer p, PlanetController pc, IActorRef actorTextOutput) { _model = p; _planetC = pc; _actorTextOutput = actorTextOutput; _bp = BluePrints.GetBluePrint(p.BluePrintType); }
public SolarSystemController(SolarSystem ss, ActorSolarSystem parentActor, IActorRef actorTextOutput) { _model = ss; _parentActor = parentActor; _actorTextOutput = actorTextOutput; // create child controller for each planet in ss _planetCs = new Dictionary <Int64, PlanetController>(); foreach (Planet p in ss.Planets) { PlanetController pc = new PlanetController(p, actorTextOutput); _planetCs.Add(p.PlanetId, pc); } _planetValues = _planetCs.Values; // create child controller for each ship in ss _shipCs = new Dictionary <Int64, ShipController>(); foreach (Ship s in ss.Ships) { ShipController sc = new ShipController(s, this, actorTextOutput); _shipCs.Add(s.ShipId, sc); } _shipValues = _shipCs.Values; }
public SolarSystemController(SolarSystem ss, ActorSolarSystem parentActor, IActorRef actorTextOutput) { _model = ss; _parentActor = parentActor; _actorTextOutput = actorTextOutput; // create child controller for each planet in ss _planetCs = new Dictionary<Int64, PlanetController>(); foreach (Planet p in ss.Planets) { PlanetController pc = new PlanetController(p, actorTextOutput); _planetCs.Add(p.PlanetId, pc); } _planetValues = _planetCs.Values; // create child controller for each ship in ss _shipCs = new Dictionary<Int64, ShipController>(); foreach (Ship s in ss.Ships) { ShipController sc = new ShipController(s, this, actorTextOutput); _shipCs.Add(s.ShipId, sc); } _shipValues = _shipCs.Values; }