public TileAtmosphere(GridId gridIndex, Vector2i gridIndices, GasMixture?mixture = null, bool immutable = false) { GridIndex = gridIndex; GridIndices = gridIndices; Air = mixture; if (immutable) { Air?.MarkImmutable(); } }
public TileAtmosphere(GridAtmosphereComponent atmosphereComponent, GridId gridIndex, Vector2i gridIndices, GasMixture mixture = null, bool immutable = false) { IoCManager.InjectDependencies(this); _gridAtmosphereComponent = atmosphereComponent; _gridTileLookupSystem = _entityManager.EntitySysManager.GetEntitySystem<GridTileLookupSystem>(); GridIndex = gridIndex; GridIndices = gridIndices; Air = mixture; if(immutable) Air?.MarkImmutable(); }
public TileAtmosphere(EntityUid gridIndex, Vector2i gridIndices, GasMixture?mixture = null, bool immutable = false, bool space = false) { GridIndex = gridIndex; GridIndices = gridIndices; Air = mixture; Space = space; MolesArchived = Air != null ? new float[Atmospherics.AdjustedNumberOfGases] : null; if (immutable) { Air?.MarkImmutable(); } }