Added gas grid optimization, various despawn optimizations, new hauling optimizations utilizing events and regions, bugfixes for old patches and for vanilla functions too, as well as smaller additions. 1.3 files removed.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// Copyright (c) 2023 bradson
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace PerformanceFish;
|
||||
|
||||
[PublicAPI]
|
||||
public class GasDef : Def
|
||||
{
|
||||
public int dissipationRate;
|
||||
public bool diffuses;
|
||||
public Color color;
|
||||
|
||||
public static GasDef? OfGasType(GasType gasType)
|
||||
=> gasType switch
|
||||
{
|
||||
GasType.BlindSmoke => GasDefOf.BlindSmoke,
|
||||
GasType.RotStink => GasDefOf.RotStink,
|
||||
GasType.ToxGas => GasDefOf.ToxGas,
|
||||
_ => null
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user