CandideServer.Entities.Controllers.Enemies.ServerBoarController
Type JSONpublic class in CandideServer.Entities.Controllers.Enemies
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Entities.Controllers.Enemies - Base type
CandideServer.Entities.Controllers.ServerBehaviorMachineController - Hash
EDEC77FF20B0C72F0A1CBF3FB077B38A49A07210130A467A64146C1396282553
Relationships
Fields
| Name | Visibility | Signature |
|---|---|---|
AttackCooldownTimer# | private | private System.String AttackCooldownTimer |
AttackOnCooldown# | private | private System.String AttackOnCooldown |
CurrentChargeSpeed# | private | private System.String CurrentChargeSpeed |
TargetEntity# | private | private System.String TargetEntity |
_chargeAttackChargeDuration# | private | private System.Single _chargeAttackChargeDuration |
_chargeAttackCooldown# | private | private System.Single _chargeAttackCooldown |
_chargeAttackDuration# | private | private System.Single _chargeAttackDuration |
_chargeAttackLeapSpeed# | private | private System.Single _chargeAttackLeapSpeed |
_chargeAttackMovementLockDuration# | private | private System.Single _chargeAttackMovementLockDuration |
_chargeAttackRange# | private | private System.Single _chargeAttackRange |
_chargeAttackSpell# | private | private System.String _chargeAttackSpell |
_chargeAttackWasBlockedByShield# | private | private System.Boolean _chargeAttackWasBlockedByShield |
_chargeCollisionCheckDelay# | private | private System.Single _chargeCollisionCheckDelay |
_chargeCollisionCheckTimer# | private | private System.Single _chargeCollisionCheckTimer |
_chargeRotationSpeed# | private | private System.Single _chargeRotationSpeed |
_chargeSpeed# | private | private System.Single _chargeSpeed |
_chargeStartSpeed# | private | private System.Single _chargeStartSpeed |
_chaseDurationBeforeChargeAttack# | private | private System.Single _chaseDurationBeforeChargeAttack |
_collidedDuringCharge# | private | private System.Boolean _collidedDuringCharge |
_collidedDuringChargeAttack# | private | private System.Boolean _collidedDuringChargeAttack |
_dazedDuration# | private | private System.Single _dazedDuration |
_hasCastChargeAttackSpell# | private | private System.Boolean _hasCastChargeAttackSpell |
_hitTargetDuringChargeAttack# | private | private System.Boolean _hitTargetDuringChargeAttack |
_initiateChargeAttackRange# | private | private System.Single _initiateChargeAttackRange |
_isChargeAttacking# | private | private System.Boolean _isChargeAttacking |
_isCharging# | private | private System.Boolean _isCharging |
_normalAttackChargeDuration# | private | private System.Single _normalAttackChargeDuration |
_normalAttackCooldown# | private | private System.Single _normalAttackCooldown |
_normalAttackDuration# | private | private System.Single _normalAttackDuration |
_normalAttackLeapSpeed# | private | private System.Single _normalAttackLeapSpeed |
_normalAttackMovementLockDuration# | private | private System.Single _normalAttackMovementLockDuration |
_normalAttackRange# | private | private System.Single _normalAttackRange |
_normalAttackSpell# | private | private System.String _normalAttackSpell |
_normalAttackSpellTriggerDelay# | private | private System.Single _normalAttackSpellTriggerDelay |
_pauseDurationAfterLosingAggro# | private | private System.Single _pauseDurationAfterLosingAggro |
_reachMaxChargeSpeedDuration# | private | private System.Single _reachMaxChargeSpeedDuration |
_runSpeed# | private | private System.Single _runSpeed |
_shouldWanderHome# | private | private System.Boolean _shouldWanderHome |
_walkSpeed# | private | private System.Single _walkSpeed |
_wanderDistance# | private | private System.ValueTuple<System.Single, System.Single> _wanderDistance |
_wanderHomeRadius# | private | private System.Single _wanderHomeRadius |
_wanderIdleDuration# | private | private System.ValueTuple<System.Single, System.Single> _wanderIdleDuration |
Methods
CastChargeAttackSpell
#
private System.Void CastChargeAttackSpell()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
F51DBBAC7239AEA4838EAE0E5D32AE7A1C37D474E4959B9407B236F6DD0A5349 - Body hash
45D7D21B47476190FD8E73F916160739BB93A6EE535757EDCAD95609AD4DA2EA - IL size156
Referenced calls
Shared.Entity.EntityWrapper::get_Id()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Entities.ServerEntityModel>::TryGetValue(!0, !1&)Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Shared.Entity.EntityWrapper::get_Direction()System.Nullable<Microsoft.Xna.Framework.Vector3>::.ctor(!0)System.Nullable<System.Single>::.ctor(!0)CandideServer.ServerManagers.SpellServerManager::TryCastSpell(System.String, System.Nullable<Microsoft.Xna.Framework.Vector3>, System.Nullable<System.Single>, CandideServer.Entities.ServerEntityModel, System.Nullable<Shared.Combat.Spells.Casting.SpellCastingContextItemData>, System.Object, Shared.Models.Spells.AttackSpellArgs, System.Guid, System.Nullable<System.Guid>, System.Boolean)
CreateStateMachine
#
public BM.StateMachine CreateStateMachine()
Method metadata
- Visibilitypublic
- Return type
BM.StateMachine - StaticFalse
- VirtualTrue
- Hash
80A0D160FAD161BCF8C068906F617ABF0C79B850B9870EF7F04953CAECB63150 - Body hash
22CCB5137BA56902318AF24E3CE07D569627FC9CAC8DAC535B21D4C60EFD3A67 - IL size3642
Referenced calls
BM.SMBuilder::.ctor()BM.SMBuilder::Branch(System.String, BM.State&, System.Int32, System.Int32)BM.StateBuilder<BM.SMBuilder>::Branch(System.String, BM.State&, System.Int32, System.Int32)BM.StateBuilder<BM.StateBuilder<BM.SMBuilder>>::Leaf(System.String, BM.State&, System.Int32, System.Int32)BM.StateBuilder<BM.StateBuilder<BM.SMBuilder>>::Branch(System.String, BM.State&, System.Int32, System.Int32)BM.StateBuilder<BM.StateBuilder<BM.StateBuilder<BM.SMBuilder>>>::Leaf(System.String, BM.State&, System.Int32, System.Int32)BM.StateBuilder<BM.StateBuilder<BM.StateBuilder<BM.SMBuilder>>>::End()BM.StateBuilder<BM.StateBuilder<BM.SMBuilder>>::End()BM.StateBuilder<BM.SMBuilder>::End()BM.SMBuilder::Build()BM.BTBuilderPool::Get()BM.ParallelSequence::.ctor(System.Boolean)BM.BTBuilder::Composite(BM.Composite)BM.TryGetThreateningEntity::.ctor(System.String)BM.BTBuilder::Leaf(BM.Leaf)BM.NodeArg<System.Single>::op_Implicit(T)BM.CooldownTimer::.ctor(BM.Blackboard, BM.NodeArg<System.Single>, System.String, System.String)BM.BTBuilder::End()BM.BTBuilder::Build()BM.State::set_UpdateBehaviorTree(BM.BehaviorTree)BM.BTFactory::IdleWithRange(System.Int32, System.Single, System.Single)BM.WanderBTSettings::.ctor()BM.NodeArg<Microsoft.Xna.Framework.Vector2>::op_Implicit(T)BM.BTFactory::Wander(BM.WanderBTSettings)BM.WanderWalkHomeBTSettings::.ctor()BM.BTFactory::WanderWalkHome(BM.WanderWalkHomeBTSettings)BM.State::AddStartChildTransition(BM.State)CandideServer.Entities.Controllers.Enemies.ServerBoarController::<CreateStateMachine>b__45_0()System.Func<System.Boolean>::.ctor(System.Object, System.IntPtr)BM.CustomBool::.ctor(System.Func<System.Boolean>)BM.ConditionHelper::Leaf(BM.Leaf)BM.Transition::set_Condition(BM.IBaseCondition)
String literals
basewanderno_player_nearbyplayer_nearbywalkidlewalkHomeaggroedchasenormalAttackchargeAttackchargeattackbreakdazedtargetEntity
EntityInitialize
#
public System.Void EntityInitialize()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
E94D1269CAEC227299ABDDA2958CFCE202A394E001F81C8CEAAB47C26D6D593E - Body hash
02466EEC9C20F1DC9A8E21DDFBD3D3C70C93E5D3F7EF948ADC5847BC73A74755 - IL size922
Referenced calls
CandideCreator.Shared.Helpers.Parameters::GetFloat(System.String, System.Single)CandideCreator.Shared.Helpers.Parameters::GetBool(System.String, System.Boolean)System.ValueTuple<System.Single, System.Single>::.ctor(!0, !1)CandideCreator.Shared.Helpers.Parameters::GetString(System.String, System.String)Shared.Entity.EntityWrapper::get_Stats()Shared.Models.Stats.EntityStats::GetCalculatedWeaponCooldownTimer(System.Single)CandideServer.Entities.Controllers.ServerBehaviorMachineController::EntityInitialize()
String literals
walk_speedrun_speedshould_wander_homewander_home_radiusmin_wander_distancemax_wander_distancemin_wander_idle_durationmax_wander_idle_durationnormal_attack_spellnormal_attack_rangenormal_attack_charge_timenormal_attack_durationnormal_attack_leap_speednormal_attack_spell_trigger_delaynormal_attack_movement_lock_durationnormal_attack_cooldown
OnBlockedByShield
#
public System.Void OnBlockedByShield(Shared.Entity.EntityWrapper blockingEntity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
AE2DF5F68495095EA4091C1EC4419C29407524AA3608590EA58C2C780D9D6AC3 - Body hash
221E7A32473CE4698DFC93D924BF2140406519C879278CA91E440A775510B724 - IL size70
Referenced calls
Shared.Entity.EntityWrapper::get_Direction()CandideCreator.Shared.Helpers.VectorExtension::DirectionToVector3(System.Single)Microsoft.Xna.Framework.Vector3::op_UnaryNegation(Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Shared.Entity.EntityWrapper::Knockback(Microsoft.Xna.Framework.Vector3, System.Single)Shared.Entity.Base.AbstractController::OnBlockedByShield(Shared.Entity.EntityWrapper)
OnEntityCollision
#
public System.Boolean OnEntityCollision(Shared.Entity.EntityWrapper otherEntity, Microsoft.Xna.Framework.Vector3 thisOldVelocity, Microsoft.Xna.Framework.Vector3 thisNewVelocity, Microsoft.Xna.Framework.Vector3 otherOldVelocity, Microsoft.Xna.Framework.Vector3 otherNewVelocity, out Microsoft.Xna.Framework.Vector3& overrideVelocity)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
EB71B703C0E7A36635D22753CC3700455EDAFE3DB3D2C35DA13773C3A1EE3055 - Body hash
F13E6A29D5CFBCBBF1D7A59742CF6E6C8ACF29FCEA3B92AEC444256DC402C566 - IL size550
Referenced calls
Shared.Entity.EntityWrapper::get_Direction()CandideCreator.Shared.Helpers.VectorExtension::DirectionToVector2(System.Single)Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::NormalizeReturnSafe(Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Dot(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_FactionMask()Shared.Entity.Components.FactionMaskNewExtension::HasAnyFlags(Shared.Entity.Components.FactionMask, Shared.Entity.Components.FactionMask)Microsoft.Xna.Framework.Vector2::get_Zero()Shared.Entity.EntityWrapper::get_Velocity()Microsoft.Xna.Framework.Vector3::.ctor(Microsoft.Xna.Framework.Vector2, System.Single)Shared.Entity.EntityWrapper::set_Velocity(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::get_MaxHealth()Shared.Entity.EntityWrapper::get_Health()Shared.Combat.DamageTypesArray::.ctor(System.Single, System.Single, System.Single, System.Single, System.Single, System.Single, System.Single, System.Single, System.Single)Shared.Entity.EntityWrapper::get_Position()System.Nullable<Microsoft.Xna.Framework.Vector3>::.ctor(!0)Shared.Combat.SharedCombatHandler::ApplyDamage(Shared.Entity.EntityWrapper, Shared.Combat.HitInfo, Shared.Entity.EntityWrapper, System.Nullable<Microsoft.Xna.Framework.Vector3>, System.Nullable<Microsoft.Xna.Framework.Vector3>, Shared.Combat.DamageSourceType, System.String, Shared.Combat.DamageVfxType, Shared.Combat.DamageVfxModifier, Shared.Combat.AttackType, System.String)CandideServer.Entities.Controllers.Enemies.ServerBoarController::CastChargeAttackSpell()CandideCreator.Shared.Helpers.VectorExtension::DirectionToVector3(System.Single)Microsoft.Xna.Framework.Vector3::op_UnaryNegation(Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Shared.Entity.EntityWrapper::Knockback(Microsoft.Xna.Framework.Vector3, System.Single)
OnTerrainCollision
#
public System.Void OnTerrainCollision(Microsoft.Xna.Framework.Vector3 previousVelocity, Microsoft.Xna.Framework.Vector3& velocity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
E9CDFF34BCAE139443D30F9128081F47FC189F0E9D47C08C86629CAB52342B1E - Body hash
7F91000BA647302000B821B03640C093CF609983241BCC011DB1D825177B825C - IL size193
Referenced calls
Microsoft.Xna.Framework.Vector2::get_Zero()Shared.Entity.EntityWrapper::get_Velocity()Microsoft.Xna.Framework.Vector3::.ctor(Microsoft.Xna.Framework.Vector2, System.Single)Shared.Entity.EntityWrapper::set_Velocity(Microsoft.Xna.Framework.Vector3)CandideServer.Entities.Controllers.Enemies.ServerBoarController::CastChargeAttackSpell()Shared.Entity.EntityWrapper::get_Direction()CandideCreator.Shared.Helpers.VectorExtension::DirectionToVector3(System.Single)Microsoft.Xna.Framework.Vector3::op_UnaryNegation(Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Shared.Entity.EntityWrapper::Knockback(Microsoft.Xna.Framework.Vector3, System.Single)Shared.Entity.Base.AbstractController::OnTerrainCollision(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3&)
SendBoarMessage
#
private System.Void SendBoarMessage(CandideServer.Entities.Controllers.Enemies.BoarMessage message)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
438990D644504A4E0C156D8C2D909D17401E646E958C8D4940F7C81BFAAA403A - Body hash
7864A15BE7F52918ECE01EFEFD3924908B02E67B52B21C26A016CA84107D9F0E - IL size59
Referenced calls
CandideServer.MessageModels.Entities.EntitiesControllerMessage::.ctor()Shared.Entity.EntityWrapper::get_Id()Shared.Entity.EntityWrapper::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToVector2(Microsoft.Xna.Framework.Vector3)CandideServer.ServerServices.EntityServerService::SendEntitiesControllerMessage(CandideServer.MessageModels.Entities.EntitiesControllerMessage, Microsoft.Xna.Framework.Vector2, System.Guid)