Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemData"/> class.
 /// </summary>
 /// <param name="systemName">Name of the system.</param>
 /// <param name="composition">The composition.</param>
 public SystemData(string systemName, SystemComposition composition)
     : base(systemName) {
     Composition = composition;
     _settlement = composition.SettlementData;
     Subscribe();
     UpdateProperties();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Copy Constructor. Initializes a new instance of the <see cref="SystemComposition" /> class.
 /// </summary>
 /// <param name="compositionToCopy">The composition to copy.</param>
 public SystemComposition(SystemComposition compositionToCopy) {
     _composition = compositionToCopy._composition;
     // UNCLEAR does compositionToCopy get collected by the garbage collector now?
 }