示例#1
0
        public TileAtmosphere(GridId gridIndex, Vector2i gridIndices, GasMixture?mixture = null, bool immutable = false)
        {
            GridIndex   = gridIndex;
            GridIndices = gridIndices;
            Air         = mixture;

            if (immutable)
            {
                Air?.MarkImmutable();
            }
        }
示例#2
0
        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();
            }
        }