BM.OffThreadPathFind
Type JSONpublic class in BM
Type metadata
- Assembly
CandideServer - Namespace
BM - Base type
BM.Leaf - Hash
464893B7719B6319163B4AF5A1C2B7BB9EEDA843BDDBE871D40CBB4F49352259
Relationships
Base type
Fields
| Name | Visibility | Signature |
|---|---|---|
AccelerationScaling# | public | public System.Single AccelerationScaling |
ApproachTimer# | public | public System.Single ApproachTimer |
CurrentNodeIndex# | public | public System.Int32 CurrentNodeIndex |
GoalPosition# | public | public Microsoft.Xna.Framework.Vector2 GoalPosition |
LastDirection# | public | public Microsoft.Xna.Framework.Vector2 LastDirection |
RecalculateTimer# | public | public System.Single RecalculateTimer |
ReversePath# | public | public System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2> ReversePath |
StuckTimer# | public | public System.Single StuckTimer |
TargetEntity# | public | public Shared.Entity.EntityWrapper TargetEntity |
TargetEntityStartPosition# | public | public Microsoft.Xna.Framework.Vector2 TargetEntityStartPosition |
_currentSpeed# | private | private System.Single _currentSpeed |
_entity# | private | private Shared.Entity.EntityWrapper _entity |
_pathFindTaskId# | private | private System.Nullable<System.Int32> _pathFindTaskId |
_status# | private | private System.Nullable<Node.Status> _status |
_waitingForPathFindTimer# | private | private System.Single _waitingForPathFindTimer |
Methods
FailedToReachTarget
#
protected System.Void FailedToReachTarget()
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
516A1CE8DAF7B69162F7B0119302509D5A90968303281E10E783BBE98C27DE29 - Body hash
7A92E6F6E5B111CAAA5E2A849C5629122EC854C557D1D0176D534FCF18E83B51 - IL size13
Referenced calls
System.Nullable<Node.Status>::.ctor(!0)
FinishReachedTarget
#
protected System.Void FinishReachedTarget()
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
8A1D046368503F664B97652080F725280ADA334507714F71AC5652D9DD69CC27 - Body hash
2750AF020E56BB2E4082419E0FF7C164BAA259E2EA72113E6DC5DA5F8E95083B - IL size82
Referenced calls
Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::ToFloatDirection(Microsoft.Xna.Framework.Vector2)Shared.Entity.EntityWrapper::set_Direction(System.Single)Microsoft.Xna.Framework.Vector3::get_Zero()Shared.Entity.EntityWrapper::set_Acceleration(Microsoft.Xna.Framework.Vector3)System.Nullable<Node.Status>::.ctor(!0)
GotPath
#
private System.Void GotPath()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
88DD60B1BAC5448F9EDD1F022B9280CB1AA36089C7697D0CF375A895BAF9DA24 - Body hash
C92B8DF8E87F57982B0B9B501DE83AE8814C692470177B650795334A052248E7 - IL size150
Referenced calls
System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Count()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::Add(!0)BM.OffThreadPathFind<T>::NextNode()CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)
Initialize
#
protected System.Void Initialize(BM.BTUpdateContext updateCtx, BM.Blackboard blackboard)
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
2AE4C7030A3A7254B3893E329460F4F3843F6DAD96DF39E61D11417637EF1A37 - Body hash
5DF10CD42D6C94EDE106D9F6C47D0C64C2DA08A35C461E745D159CFFCB9AB948 - IL size99
Referenced calls
BM.OffThreadPathFind<T>::UpdateGoalPosition(BM.Blackboard)BM.OffThreadPathFind<T>::NewPath(BM.Blackboard)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)
NewPath
#
private System.Void NewPath(BM.Blackboard blackboard)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
781B023755B41255F4D9556E130D0913BB2FA9D053FE200B5605102E40B8C389 - Body hash
415128448B134E0205A8F188B4C38592FE8F8379B2CCCF907AF36F2F0CF1CCA9 - IL size129
Referenced calls
System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::Clear()BM.OffThreadPathFind<T>::UpdateGoalPosition(BM.Blackboard)Shared.Entity.EntityWrapper::get_Position2()CandideServer.PathFinding.PathFindArgs::GenericEntityPathFind(Shared.Entity.EntityWrapper, Microsoft.Xna.Framework.Vector2, Shared.Entity.EntityWrapper, System.Boolean, System.Single)CandideServer.PathFinding.PathFindSystem::QueuePathFindTask(CandideServer.PathFinding.PathFindArgs)System.Nullable<System.Int32>::.ctor(!0)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)
NextNode
#
private System.Void NextNode()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
50394DBC69E0DD5E3D1A3D51D16186F56F21D1E298B7246A67EC43575F5F763A - Body hash
B7EECD0FE4241D5E5D61F271189294913CA11A9F85C1826049EBDE2D9399A76F - IL size254
Referenced calls
Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Length()BM.OffThreadPathFind<T>::FinishReachedTarget()Shared.Helpers.EntityHelper::DistanceBetweenCollisions(Shared.Entity.EntityWrapper, Shared.Entity.EntityWrapper)BM.OffThreadPathFind<T>::FailedToReachTarget()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Item(System.Int32)Microsoft.Xna.Framework.Vector2::DistanceSquared(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
Terminate
#
protected System.Void Terminate(Node.Status s)
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
644B52D0F0E73DC7452FD65E952745C3ED14F2942DBA95B2C7CA78152AE6F3CD - Body hash
F9D6F2C55A9AB542CB15056725CCE5C9FD7C9763682D3456609B8CEAB5E0B8B7 - IL size17
Referenced calls
Microsoft.Xna.Framework.Vector3::get_Zero()Shared.Entity.EntityWrapper::set_Acceleration(Microsoft.Xna.Framework.Vector3)
Update
#
protected Node.Status Update(BM.BTUpdateContext updateCtx, BM.Blackboard blackboard)
Method metadata
- Visibilityprotected
- Return type
Node.Status - StaticFalse
- VirtualTrue
- Hash
F5EDA6D11D0DE81BD6A0A1AA859FF10F08F40DF389C44012CA7BC45BEF59BFC5 - Body hash
F4B0011CF318EEF215FFAD72FF66C1D95DD7187B2668D3D49B17C1E2794CD675 - IL size1213
Referenced calls
System.Nullable<Node.Status>::get_HasValue()System.Nullable<Node.Status>::GetValueOrDefault()System.Nullable<System.Int32>::get_HasValue()System.Nullable<System.Int32>::GetValueOrDefault()CandideServer.PathFinding.PathFindSystem::CheckForPathFindResult(System.Int32, System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>)BM.OffThreadPathFind<T>::FailedToReachTarget()BM.OffThreadPathFind<T>::GotPath()System.Nullable<BM.NodeArg<System.Int32>>::get_HasValue()System.Nullable<BM.NodeArg<System.Int32>>::get_Value()BM.NodeArg<System.Int32>::TryGet(BM.Blackboard, T&)Shared.Entity.EntityWrapper::get_Id()CandideServer.SyncStrategies.SyncStrategy::Everyone()CandideServer.ServerManagers.EntityServerManager::UpdateEntityState(System.Guid, System.Int32, System.Boolean, CandideServer.SyncStrategies.SyncStrategy)BM.NodeArg<System.Single>::Get(BM.Blackboard)Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Length()BM.OffThreadPathFind<T>::FinishReachedTarget()Shared.Helpers.EntityHelper::DistanceBetweenCollisions(Shared.Entity.EntityWrapper, Shared.Entity.EntityWrapper)BM.OffThreadPathFind<T>::NewPath(BM.Blackboard)Shared.Entity.EntityWrapper::get_DistanceWalked()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Count()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Item(System.Int32)Microsoft.Xna.Framework.Vector2::Dot(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::ToFloatDirection(Microsoft.Xna.Framework.Vector2)Shared.Entity.EntityWrapper::set_Direction(System.Single)System.MathF::Max(System.Single, System.Single)CandideCreator.Shared.Helpers.MathExtension::IsWonky(System.Single)BM.NodeArg<System.Boolean>::TryGet(BM.Blackboard, T&)System.MathF::Min(System.Single, System.Single)CandideCreator.Shared.Helpers.CandideMathHelper::ClampSafe(System.Single, System.Single, System.Single)Shared.Entity.Components.GeneralComponent::Accelerate(Microsoft.Xna.Framework.Vector2)
UpdateGoalPosition
#
public System.Void UpdateGoalPosition(BM.Blackboard blackboard)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
196CD25F3F73718D7FB0B7F1A895F70A71BC3C340567D4048EEF840D35310CD9 - Body hash
7E538D2DE76C392AE0577BD76A8E18F39F326275EB4DBD7B22900741F891B70F - IL size420
Referenced calls
BM.NodeArg<T>::Get(BM.Blackboard)Shared.Entity.EntityWrapper::get_Position2()System.Func<Shared.Entity.EntityWrapper, Microsoft.Xna.Framework.Vector2>::Invoke(!0)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Nullable<Microsoft.Xna.Framework.Vector2>::get_HasValue()System.Nullable<Microsoft.Xna.Framework.Vector2>::get_Value()CandideServer.ServerGameState::TryGetServerEntity(System.Guid, CandideServer.Entities.ServerEntityModel&, System.String)
String literals
UpdateGoalPosition