Beispiel #1
0
 public double TotalGasStorage(MyDefinitionId id)
 {
     if (id.Equals(MyResourceDistributorComponent.ElectricityId))
     {
         return(TotalPowerStorage);
     }
     return(m_gasStorageCache.GetValueOrDefault(id, 0));
 }
Beispiel #2
0
 public bool Equals(DataSetKey other)
 {
     return(Id.Equals(other.Id) && Seed == other.Seed);
 }
Beispiel #3
0
 public bool Equals(ModifierDataKey other)
 {
     return(Host.Equals(other.Host) && Modifier.Equals(other.Modifier));
 }
Beispiel #4
0
 public bool Equals(DefinitionKey other)
 {
     return(State.Equals(other.State) && Id.Equals(other.Id));
 }