WayPoint
Barotrauma.WayPoint
Functions
AddLinked(entity)
AddLinked
Parameters
-
entity
MapEntity
AddToGUIUpdateList(order)
AddToGUIUpdateList
Parameters
-
order
number
AddUpgrade(upgrade, createNetworkEvent)
AddUpgrade
Parameters
-
upgrade
Upgrade
-
createNetworkEvent
bool
Returns
-
bool
Clone()
Clone
Returns
-
MapEntity
ConnectTo(wayPoint2)
ConnectTo
Parameters
-
wayPoint2
WayPoint
Draw(spriteBatch, editing, back)
Draw
Parameters
-
spriteBatch
Microsoft.Xna.Framework.Graphics.SpriteBatch
-
editing
bool
-
back
bool
Draw(spriteBatch, drawPos)
Draw
Parameters
-
spriteBatch
Microsoft.Xna.Framework.Graphics.SpriteBatch
-
drawPos
Microsoft.Xna.Framework.Vector2
DrawEditing(spriteBatch, cam)
DrawEditing
Parameters
-
spriteBatch
Microsoft.Xna.Framework.Graphics.SpriteBatch
-
cam
Camera
Equals(obj)
Equals
Parameters
-
obj
Object
Returns
-
bool
FindHull()
FindHull
FlipX(relativeToSub)
FlipX
Parameters
-
relativeToSub
bool
FlipY(relativeToSub)
FlipY
Parameters
-
relativeToSub
bool
FreeID()
FreeID
GetDrawDepth(baseDepth, sprite)
GetDrawDepth
Parameters
-
baseDepth
number
-
sprite
Sprite
Returns
-
number
GetDrawDepth()
GetDrawDepth
Returns
-
number
GetHashCode()
GetHashCode
Returns
-
number
GetLinkedEntities(list, maxDepth, filter)
GetLinkedEntities
Parameters
-
list
HashSet
-
maxDepth
optional Int32
-
filter
function
Returns
-
HashSet
GetReplacementOrThis()
GetReplacementOrThis
Returns
-
MapEntity
GetTransformedQuad()
GetTransformedQuad
Returns
-
Quad2D
GetType()
GetType
Returns
-
Type
GetUpgrade(identifier)
GetUpgrade
Parameters
-
identifier
Identifier
Returns
-
Upgrade
GetUpgrades()
GetUpgrades
Returns
HasUpgrade(identifier)
HasUpgrade
Parameters
-
identifier
Identifier
Returns
-
bool
InitializeLinks()
InitializeLinks
IsMouseOn(position)
IsMouseOn
Parameters
-
position
Microsoft.Xna.Framework.Vector2
Returns
-
bool
IsVisible(worldView)
IsVisible
Parameters
-
worldView
Microsoft.Xna.Framework.Rectangle
Returns
-
bool
Move(amount, ignoreContacts)
Move
Parameters
-
amount
Microsoft.Xna.Framework.Vector2
-
ignoreContacts
bool
OnGapStateChanged(open, gap)
OnGapStateChanged
Parameters
-
open
bool
-
gap
Gap
OnMapLoaded()
OnMapLoaded
Remove()
Remove
RemoveLinked(e)
RemoveLinked
Parameters
-
e
MapEntity
ResolveLinks(childRemap)
ResolveLinks
Parameters
-
childRemap
IdRemap
Save(parentElement)
Save
Parameters
-
parentElement
Xml.Linq.XElement
Returns
-
Xml.Linq.XElement
SetUpgrade(upgrade, createNetworkEvent)
SetUpgrade
Parameters
-
upgrade
Upgrade
-
createNetworkEvent
bool
ShallowRemove()
ShallowRemove
ToString()
ToString
Returns
Update(deltaTime, cam)
Update
Parameters
-
deltaTime
number
-
cam
Camera
UpdateEditing(cam, deltaTime)
UpdateEditing
Parameters
-
cam
Camera
-
deltaTime
number
WayPoint(prefab, rectangle)
WayPoint
Parameters
-
prefab
MapEntityPrefab
-
rectangle
Microsoft.Xna.Framework.Rectangle
WayPoint(type, newRect, submarine, id)
WayPoint
Parameters
-
type
Type
-
newRect
Microsoft.Xna.Framework.Rectangle
-
submarine
Submarine
-
id
number
WayPoint(newRect, submarine)
WayPoint
Parameters
-
newRect
Microsoft.Xna.Framework.Rectangle
-
submarine
Submarine
WayPoint(position, spawnType, submarine, gap)
WayPoint
Parameters
-
position
Microsoft.Xna.Framework.Vector2
-
spawnType
SpawnType
-
submarine
Submarine
-
gap
Gap
WayPoint.GenerateSubWaypoints(submarine)
GenerateSubWaypoints
Parameters
-
submarine
Submarine
Returns
-
bool
WayPoint.GetOutpostSpawnPoints(teamID)
GetOutpostSpawnPoints
Parameters
-
teamID
CharacterTeamType
Returns
WayPoint.GetRandom(spawnType, assignedJob, sub, useSyncedRand, spawnPointTag, ignoreSubmarine)
GetRandom
Parameters
-
spawnType
SpawnType
-
assignedJob
JobPrefab
-
sub
Submarine
-
useSyncedRand
bool
-
spawnPointTag
string
-
ignoreSubmarine
bool
Returns
WayPoint.Load(element, submarine, idRemap)
Load
Parameters
-
element
ContentXElement
-
submarine
Submarine
-
idRemap
IdRemap
Returns
WayPoint.SelectCrewSpawnPoints(crew, submarine)
SelectCrewSpawnPoints
Parameters
-
crew
table
-
submarine
Submarine
Returns
Fields
AiTarget
AiTarget, field of type AITarget
-
AiTarget
AllowedLinks
AllowedLinks, field of type IEnumerable
-
AllowedLinks
AssignedJob
AssignedJob, field of type JobPrefab
-
AssignedJob
Cave
Cave, field of type Cave
-
Cave
ConnectedDoor
ConnectedDoor, field of type Items.Components.Door
-
ConnectedDoor
ConnectedGap
ConnectedGap, field of type Gap
-
ConnectedGap
CreationIndex
CreationIndex, field of type number
-
CreationIndex
CreationStackTrace
CreationStackTrace, field of type string
-
CreationStackTrace
CurrentHull
CurrentHull, field of type Hull
-
CurrentHull
DisallowedUpgradeSet
DisallowedUpgradeSet, field of type HashSet
-
DisallowedUpgradeSet
DisallowedUpgrades
DisallowedUpgrades, field of type string
-
DisallowedUpgrades
DrawBelowWater
DrawBelowWater, field of type bool
-
DrawBelowWater
DrawOverWater
DrawOverWater, field of type bool
-
DrawOverWater
DrawPosition
DrawPosition, field of type Microsoft.Xna.Framework.Vector2
-
DrawPosition
ErrorLine
ErrorLine, field of type string
-
ErrorLine
ExitPointSize
ExitPointSize, field of type Microsoft.Xna.Framework.Point
-
ExitPointSize
ExitPointWorldRect
ExitPointWorldRect, field of type Microsoft.Xna.Framework.Rectangle
-
ExitPointWorldRect
ExternalHighlight
ExternalHighlight, field of type bool
-
ExternalHighlight
FlippedX
FlippedX, field of type bool
-
FlippedX
FlippedY
FlippedY, field of type bool
-
FlippedY
HiddenInGame
HiddenInGame, field of type bool
-
HiddenInGame
ID
ID, field of type number
-
ID
IdCardDesc
IdCardDesc, field of type string
-
IdCardDesc
IdCardTags
IdCardTags, field of type String[]
-
IdCardTags
IdFreed
IdFreed, field of type bool
-
IdFreed
InDetectable
InDetectable, field of type bool
-
InDetectable
IsHidden
IsHidden, field of type bool
-
IsHidden
IsHighlighted
IsHighlighted, field of type bool
-
IsHighlighted
IsInWater
IsInWater, field of type bool
-
IsInWater
IsIncludedInSelection
IsIncludedInSelection, field of type bool
-
IsIncludedInSelection
IsLayerHidden
IsLayerHidden, field of type bool
-
IsLayerHidden
IsObstructed
IsObstructed, field of type bool
-
IsObstructed
IsSelected
IsSelected, field of type bool
-
IsSelected
IsTraversable
IsTraversable, field of type bool
-
IsTraversable
Ladders
Ladders, field of type Items.Components.Ladder
-
Ladders
Layer
Layer, field of type string
-
Layer
Linkable
Linkable, field of type bool
-
Linkable
Name
Name, field of type string
-
Name
OnLinksChanged
OnLinksChanged, field of type Action
-
OnLinksChanged
OriginalContainerIndex
OriginalContainerIndex, field of type number
-
OriginalContainerIndex
OriginalModuleIndex
OriginalModuleIndex, field of type number
-
OriginalModuleIndex
Position
Position, field of type Microsoft.Xna.Framework.Vector2
-
Position
Prefab
Prefab, field of type MapEntityPrefab
-
Prefab
Rect
Rect, field of type Microsoft.Xna.Framework.Rectangle
-
Rect
RectHeight
RectHeight, field of type number
-
RectHeight
RectWidth
RectWidth, field of type number
-
RectWidth
RemoveIfLinkedOutpostDoorInUse
RemoveIfLinkedOutpostDoorInUse, field of type bool
-
RemoveIfLinkedOutpostDoorInUse
Removed
Removed, field of type bool
-
Removed
ReplacedBy
ReplacedBy, field of type MapEntity
-
ReplacedBy
ResizeHorizontal
ResizeHorizontal, field of type bool
-
ResizeHorizontal
ResizeVertical
ResizeVertical, field of type bool
-
ResizeVertical
Ruin
Ruin, field of type RuinGeneration.Ruin
-
Ruin
Scale
Scale, field of type number
-
Scale
SelectableInEditor
SelectableInEditor, field of type bool
-
SelectableInEditor
ShouldBeSaved
ShouldBeSaved, field of type bool
-
ShouldBeSaved
SightRange
SightRange, field of type number
-
SightRange
SimPosition
SimPosition, field of type Microsoft.Xna.Framework.Vector2
-
SimPosition
SoundRange
SoundRange, field of type number
-
SoundRange
SpawnTime
SpawnTime, field of type number
-
SpawnTime
SpawnType
SpawnType, field of type SpawnType
-
SpawnType
Sprite
Sprite, field of type Sprite
-
Sprite
SpriteDepth
SpriteDepth, field of type number
-
SpriteDepth
SpriteDepthOverrideIsSet
SpriteDepthOverrideIsSet, field of type bool
-
SpriteDepthOverrideIsSet
SpriteOverrideDepth
SpriteOverrideDepth, field of type number
-
SpriteOverrideDepth
Stairs
Stairs, field of type Structure
-
Stairs
Submarine
Submarine, field of type Submarine
-
Submarine
Tags
Tags, field of type IEnumerable
-
Tags
Tunnel
Tunnel, field of type Tunnel
-
Tunnel
WayPoint.LadderWaypointInterval
WayPoint.LadderWaypointInterval, field of type number
WayPoint.ShowSpawnPoints
WayPoint.ShowSpawnPoints, field of type bool
WayPoint.ShowWayPoints
WayPoint.ShowWayPoints, field of type bool
WayPoint.WayPointList
WayPoint.WayPointList, field of type table
WorldPosition
WorldPosition, field of type Microsoft.Xna.Framework.Vector2
-
WorldPosition
WorldRect
WorldRect, field of type Microsoft.Xna.Framework.Rectangle
-
WorldRect
linkedTo
linkedTo, field of type table
-
linkedTo
unresolvedLinkedToID
unresolvedLinkedToID, field of type table
-
unresolvedLinkedToID