Struct Sector


Public Member Variables

native readonly FColormap ColorMap

native readonly Color[5] SpecialColors

native readonly Color[5] AdditiveColors


native int special

native int16 lightlevel

native int16 seqType

native int sky

native Name SeqName

native readonly Vector2 centerspot





native int[2] terrainnum




native uint8 soundtraversed

native int8 stairlock

native int prevsec

native int nextsec

native readonly Array< Line > lines

native readonly @SecPlane floorplane

native readonly @SecPlane ceilingplane

native readonly Sector heightsec


native uint topmap

native uint midmap




native int16 damageinterval

native int16 leakydamage

native readonly uint16 ZoneNumber

native readonly int healthceiling

native readonly int healthfloor

native readonly int healthceilinggroup

native readonly int healthfloorgroup

native uint16 MoreFlags

native uint Flags


native internal uint[2] Portals

native readonly int PortalGroup

native readonly int sectornum

Public Functions

native clearscope int Index() const

native clearscope double, Sector, F3DFloor NextHighestCeilingAt(
double x,
double y,
double bottomz,
double topz,
int flags = 0
) const

native clearscope double, Sector, F3DFloor NextLowestFloorAt(
double x,
double y,
double z,
int flags = 0,
double steph = 0
) const

native clearscope F3DFloor Get3DFloor(
int index
) const

native clearscope int Get3DFloorCount(
) const

native clearscope Sector GetAttached(
int index
) const

native clearscope int GetAttachedCount(
) const

native void RemoveForceField()

static clearscope Sector PointInSector(
Vector2 pt
)
🛇deprecated since 3.8.0: Use Level.PointInSector instead

native clearscope bool PlaneMoving(
int pos
) const

native clearscope int GetFloorLight(
) const

native clearscope int GetCeilingLight(
) const

native clearscope Sector GetHeightSec(
) const

native void TransferSpecial(
Sector model
)

native clearscope void GetSpecial(
out SecSpecial spec
) const

native void SetSpecial(SecSpecial spec)

native clearscope int GetTerrain(
int pos
) const

native clearscope TerrainDef GetFloorTerrain(
int pos
) const

native void CheckPortalPlane(int plane)

native clearscope double, Sector HighestCeilingAt(
Vector2 a
) const

native clearscope double, Sector LowestFloorAt(
Vector2 a
) const

native clearscope double, double GetFriction(
int plane
) const

native void SetXOffset(
int pos,
double o
)

native void AddXOffset(
int pos,
double o
)

native clearscope double GetXOffset(
int pos
) const

native void SetYOffset(
int pos,
double o
)

native void AddYOffset(
int pos,
double o
)

native clearscope double GetYOffset(
int pos,
bool addbase = true
) const

native void SetXScale(int pos, double o)

native clearscope double GetXScale(
int pos
) const

native void SetYScale(int pos, double o)

native clearscope double GetYScale(
int pos
) const

native void SetAngle(int pos, double o)

native clearscope double GetAngle(
int pos,
bool addbase = true
) const

native void SetBase(
int pos,
double y,
double o
)

native void SetAlpha(int pos, double o)

native clearscope double GetAlpha(
int pos
) const

native clearscope int GetFlags(
int pos
) const

native clearscope int GetVisFlags(
int pos
) const

native void ChangeFlags(
int pos,
int And,
int Or
)

native clearscope int GetPlaneLight(
int pos
) const

native void SetPlaneLight(
int pos,
int level
)

native void SetColor(
color c,
int desat = 0
)

native void SetFade(color c)

native void SetFogDensity(int dens)

native clearscope double GetGlowHeight(
int pos
) const

native clearscope color GetGlowColor(
int pos
) const

native void SetGlowHeight(
int pos,
double height
)

native void SetGlowColor(
int pos,
color color
)

native void SetSpecialColor(
int pos,
color color
)

native void SetAdditiveColor(
int pos,
Color color
)

native void SetColorization(
int tier,
Name cname
)

native clearscope TextureID GetTexture(
int pos
) const

native void SetTexture(
int pos,
TextureID tex,
bool floorclip = true
)

native clearscope double GetPlaneTexZ(
int pos
) const

native void SetPlaneTexZ(
int pos,
double val,
bool dirtify = false
)

native void ChangeLightLevel(int newval)

native void SetLightLevel(int newval)

native clearscope int GetLightLevel(
) const

native void AdjustFloorClip()

native clearscope bool IsLinked(
Sector other,
bool ceiling
) const

native clearscope bool PortalBlocksView(
int plane
) const

native clearscope bool PortalBlocksSight(
int plane
) const

native clearscope bool PortalBlocksMovement(
int plane
) const

native clearscope bool PortalBlocksSound(
int plane
) const

native clearscope bool PortalIsLinked(
int plane
) const

native void ClearPortal(int plane)

native clearscope double GetPortalPlaneZ(
int plane
) const

native clearscope Vector2 GetPortalDisplacement(
int plane
) const

native clearscope int GetPortalType(
int plane
) const

native clearscope int GetOppositePortalGroup(
int plane
) const

native clearscope double CenterFloor(
) const

native clearscope double CenterCeiling(
) const

native int MoveFloor(
double speed,
double dest,
int crush,
int direction,
bool hexencrush,
bool instant = false
)

native int MoveCeiling(
double speed,
double dest,
int crush,
int direction,
bool hexencrush
)

native clearscope Sector NextSpecialSector(
int type,
Sector prev
) const

native clearscope double, Vertex FindLowestFloorSurrounding(
) const

native clearscope double, Vertex FindHighestFloorSurrounding(
) const

native clearscope double, Vertex FindNextHighestFloor(
) const

native clearscope double, Vertex FindNextLowestFloor(
) const

native clearscope double, Vertex FindLowestCeilingSurrounding(
) const

native clearscope double, Vertex FindHighestCeilingSurrounding(
) const

native clearscope double, Vertex FindNextLowestCeiling(
) const

native clearscope double, Vertex FindNextHighestCeiling(
) const

native clearscope double FindShortestTextureAround(
) const

native clearscope double FindShortestUpperAround(
) const

native clearscope Sector FindModelFloorSector(
double floordestheight
) const

native clearscope Sector FindModelCeilingSector(
double floordestheight
) const

native clearscope int FindMinSurroundingLight(
int max
) const

native clearscope double, Vertex FindLowestCeilingPoint(
) const

native clearscope double, Vertex FindHighestFloorPoint(
) const

native void SetEnvironment(String env)

native void SetEnvironmentID(int envnum)

native SeqNode StartSoundSequenceID(
int chan,
int sequence,
int type,
int modenum,
bool nostop = false
)

native SeqNode StartSoundSequence(
int chan,
Name seqname,
int modenum
)

native clearscope SeqNode CheckSoundSequence(
int chan
) const

native void StopSoundSequence(int chan)

native clearscope bool IsMakingLoopingSound(
) const

clearscope bool isSecret() const

clearscope bool wasSecret() const


clearscope int GetUDMFInt(Name nm) const

clearscope double GetUDMFFloat(
Name nm
) const

clearscope String GetUDMFString(
Name nm
) const


native clearscope int GetHealth(
SectorPart part
) const

native void SetHealth(
SectorPart part,
int newhealth
)

Inner Enums