CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController
Type JSONpublic class in CandideServer.Entities.ControllerSets.Catapult
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Entities.ControllerSets.Catapult - Base type
Shared.Entity.Base.AbstractController - Hash
3B875E5936F50137A2B70688C54632C9277B81B7365036880116237150B7273B
Relationships
Base type
Fields
| Name | Visibility | Signature |
|---|---|---|
AimRange# | public | public System.Single AimRange |
CarryingOffset# | public | public Microsoft.Xna.Framework.Vector3 CarryingOffset |
DefaultRange# | public | public System.Single DefaultRange |
DriverRelativeAimPos# | public | public Microsoft.Xna.Framework.Vector2 DriverRelativeAimPos |
EnemyCatapultFiringCooldown# | private | private System.Single EnemyCatapultFiringCooldown |
LastSyncPos# | private | private Microsoft.Xna.Framework.Vector2 LastSyncPos |
MinRange# | public | public System.Single MinRange |
NetworkSyncTimer# | private | private System.Single NetworkSyncTimer |
ParameterValue1Name# | public | public System.String ParameterValue1Name |
ParameterValue2Name# | public | public System.String ParameterValue2Name |
PreSetThrowArgs# | public | public Shared.Helpers.CastSpellArgs PreSetThrowArgs |
UpgradeLevelParameterId# | public | public System.String UpgradeLevelParameterId |
_hasFired# | private | private System.Boolean _hasFired |
_upgradeLevel# | private | private System.Int32 _upgradeLevel |
Properties
| Name | Visibility | Signature |
|---|---|---|
GetRotationAngle# | public | public System.Single GetRotationAngle |
Methods
EntityInitialize
#
public System.Void EntityInitialize()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
1FBFDA0A4652C1A428266B1B1121A924320EB4C5456940B5BA6E8CE7C3235F4A - Body hash
10B766F7E9CB0CDF9CADF07214C13B2CC502E6474AA2314CB082F7297D33CCEC - IL size36
Referenced calls
String literals
upgrade_level
Fire
#
public System.Void Fire()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
B46A7FC7B6CB92B79906BBA15515C75091CEE0B766A9D0CA221C3C68549326EB - Body hash
57516EFE6FDB2FC03B0A848612978D937C62F541FF51D9CD4011A51CD5DB57B4 - IL size29
GetAimWorldPos
#
private Microsoft.Xna.Framework.Vector2 GetAimWorldPos()
Method metadata
- Visibilityprivate
- Return type
Microsoft.Xna.Framework.Vector2 - StaticFalse
- VirtualFalse
- Hash
6F6EBFFA47061398CFDA04771DFD539315C7098E5B13981C7013937E19EE938E - Body hash
6AA83E9E0ECD77264E2C324D9F714696DE12D33630C1DA687B2DA3BFB9EF0689 - IL size44
Referenced calls
Shared.Entity.EntityWrapper::get_Position2()Shared.Entity.EntityWrapper::get_Direction()CandideCreator.Shared.Helpers.VectorExtension::DirectionToVector2(System.Single)Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
GetDirectionStep
#
private System.Single GetDirectionStep()
Method metadata
- Visibilityprivate
- Return type
System.Single - StaticTrue
- VirtualFalse
- Hash
01FC7E4F404B58E817CE1EAEF5BE0D5C4552FB1E86FD0B006353F75D42C94A13 - Body hash
FF0DDA7A62AB36A2A49C0AD0727F2F8C8F6F12D3AE581D1C284A17F59B6B45EB - IL size6
GetMaxRange
#
public System.Single GetMaxRange(System.Int32 upgradeLevel)
Method metadata
- Visibilitypublic
- Return type
System.Single - StaticTrue
- VirtualFalse
- Hash
DB4E5D70A452A63A600410BA948811AC601C415A4C429358623FD37D8E3AF20E - Body hash
1C99C26408EE34AEC0BF8F4F65A9B9CDB82C42705E4FB88902C69BC64F0DE464 - IL size33
GetReloadingSpeed
#
public System.Single GetReloadingSpeed(System.Int32 upgradeLevel)
Method metadata
- Visibilitypublic
- Return type
System.Single - StaticTrue
- VirtualFalse
- Hash
85940F519F606BB0F6CF1EB6FA4BE7B29B991ADDDBEF7C6685E2C5D895FE55D5 - Body hash
0C3FC813C84B29D952CDC90DB38E99D917A1693DAB2633C0EB9EDB02B83EB327 - IL size34
OnDamaged
#
public System.Void OnDamaged(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
4AF6F9E4EA9B6386075AC631D3B1F2004FD08C1109DB7D53A975659AE923A792 - Body hash
9CAA4A572F62A00BB71A7487CA122FDFB43C3703E939F62D70056AF40896BEE3 - IL size29
Referenced calls
String literals
WorldStats_ArmamentsDamageResistance
OnEntityAttached
#
public System.Void OnEntityAttached(Shared.Entity.EntityWrapper carriedEntity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
33C0B91DF34684170305522B29C429F27A842BBCF9CF1A3F83CD4245C98895CD - Body hash
FCA03F7CE39817C49CB65EE8A2EAB9DC02B8F4B7E3E6FDCC4B3E843D5984BFD0 - IL size15
Referenced calls
Shared.Entity.EntityWrapper::set_NoEntityCollision(System.Boolean)Shared.Entity.EntityWrapper::set_NoTerrainCollision(System.Boolean)
OnEntityDetached
#
public System.Void OnEntityDetached(Shared.Entity.EntityWrapper carriedEntity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
1F60180D5DC7841FB55ADEE590218CE7F2EAF09328B37EBC0DA35572447F4C88 - Body hash
2B423DBA75F6BE3B9B98841DD0A51DCC4E2A3FB22612E696E682AC09645DD90B - IL size15
Referenced calls
Shared.Entity.EntityWrapper::set_NoEntityCollision(System.Boolean)Shared.Entity.EntityWrapper::set_NoTerrainCollision(System.Boolean)
OnServerSetState
#
public System.Void OnServerSetState(System.Int32 state)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
02A27CE343E8553CB20EA15D1DE9C9045CF072971E1EE4B027728570B3E538FF - Body hash
AE6C88EE715E036B29EC2B75D5003C27D464AAD5EAE422B3ECAE01428C0E926B - IL size8
PerformVehicleAction
#
public System.Void PerformVehicleAction(System.Int32 action, System.Object args)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
4BAC45B536A1E0C3DF0B8C584118BC95E753CF678E759A0E8E707A12DE0AB98B - Body hash
4F92FEC9FF6392E5082C723EE0E5AA0B67E446D8E236603C9FFC5A453D316B5F - IL size72
Referenced calls
Shared.Entity.EntityWrapper::set_Direction(System.Single)CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController::Fire()
SendAimPos
#
public System.Void SendAimPos()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
00318CAD2D54E08689313B05C258ABFB06E540251B6B31AB4F0FFC3700CFE859 - Body hash
A8B5A557183E4673E03025F6FA841FAF9E1FA36127FD42263A50A771B136A3DC - IL size29
Referenced calls
CandideServer.Entities.ControllerSets.Catapult.CatapultControllerMessage::.ctor()CandideServer.ServerServices.EntityServerService::SendEntitiesControllerMessage(Shared.Entity.EntityWrapper, System.Object)
SetAimPosition
#
public System.Void SetAimPosition(System.Single aimX, System.Single aimY)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
781AF58B57B7AB9D812C546FDBE8D4132635F7B0CC4881B104EAFE9974976EE1 - Body hash
B00400C9685EFA1FF95F4CF597205805A5C704B404B1279A1172E23977E32A65 - IL size14
Referenced calls
Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)
SetState
#
private System.Void SetState(System.Int32 state)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
B94D298CEB5C81499E54CAE81548BF7712CDA71009958D340137BF6E8443525B - Body hash
B164EBA09E24956E8B51A9733CCEF7C4E5C24EB6105516F49A9BCE6A2115A104 - IL size46
Referenced calls
Shared.Entity.EntityWrapper::get_Id()CandideServer.ServerManagers.VehicleServerManager::VehicleSetOwnAction(System.Guid, System.Nullable<System.Int32>)
SpellArgs_NonPlayer
#
private Shared.Helpers.CastSpellArgs SpellArgs_NonPlayer(Shared.Entity.EntityWrapper thrower, Shared.Entity.EntityWrapper target)
Method metadata
- Visibilityprivate
- Return type
Shared.Helpers.CastSpellArgs - StaticFalse
- VirtualFalse
- Hash
86FEE0282A0B0BB3C93ABC4392C6FF749B5FBEF5F30716A1125C32A7FED4CA2E - Body hash
88036B0BD56A17CE40D21678028BEFF7C8E77D4587991B6AB6F485417415546F - IL size233
Referenced calls
Shared.Combat.Spells.Parameters.ExplosionSpellArgs::.ctor()Microsoft.Xna.Framework.Vector3::get_Zero()Shared.Combat.DamageTypesArray::.ctor(System.Single, System.Single, System.Single, System.Single, System.Single, System.Single, System.Single, System.Single, System.Single)Shared.Models.Spells.AttackSpellArgs::.ctor()System.Nullable<Shared.Combat.DamageVfxType>::.ctor(!0)Shared.Helpers.SharedSpellHelper::CreateSpellArgs(System.String, System.Object, Shared.Models.Spells.AttackSpellArgs, Shared.Entity.EntityWrapper, System.UInt16&)CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)
String literals
shockwave_smallthrow_object_catapulted_satyrFailed creating catapult snapshot spell args.
TargetPlayer
#
private System.Void TargetPlayer(System.Guid driverId)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
FEFEAED65F2843E6DFFCDB0609E58F6DAC5E9A921C6395E869E725CD44FFB25B - Body hash
F2486C8EE19933CB4447D785DF7601974000989DE8838921A1253F8BFC3C10D9 - IL size788
Referenced calls
Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::get_Zero()CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController::GetAimWorldPos()System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, CandideServer.ServerServices.ServerJoinedPlayerModel>::GetEnumerator()Dictionary.Enumerator<Shared.Entity.EntityWrapper, CandideServer.ServerServices.ServerJoinedPlayerModel>::get_Current()System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, CandideServer.ServerServices.ServerJoinedPlayerModel>::Deconstruct(!0&, !1&)Shared.Entity.EntityWrapper::get_WorldId()System.Guid::op_Inequality(System.Guid, System.Guid)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::LengthSquared()Microsoft.Xna.Framework.Vector2::Distance(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.MathF::Sqrt(System.Single)Dictionary.Enumerator<Shared.Entity.EntityWrapper, CandideServer.ServerServices.ServerJoinedPlayerModel>::MoveNext()System.IDisposable::Dispose()CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController::get_GetRotationAngle()Microsoft.Xna.Framework.Matrix::CreateRotationZ(System.Single, Microsoft.Xna.Framework.Matrix&)Microsoft.Xna.Framework.Vector3::Transform(Microsoft.Xna.Framework.Vector3&, Microsoft.Xna.Framework.Matrix&, Microsoft.Xna.Framework.Vector3&)Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::get_CarriedEntity()CandideServer.ServerControllers.SpawnEntityArgs::.ctor()System.Guid::NewGuid()CandideServer.ServerManagers.EntityServerManager::SpawnEntity(CandideServer.ServerControllers.SpawnEntityArgs)CandideServer.Helpers.ServerEntityHelper::ToServerEntity(Shared.Entity.EntityWrapper)CandideServer.ServerManagers.EntityServerManager::TryAttach(CandideServer.Entities.ServerEntityModel, CandideServer.Entities.ServerEntityModel, Shared.Combat.EntityAttachPriority, CandideServer.SyncStrategies.SyncStrategy)CandideServer.ServerManagers.EntityServerManager::RemoveEntity(System.Guid, Shared.Entity.EntityRemoveInfo)CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)CandideServer.ServerManagers.EntityServerManager::Detach(CandideServer.Entities.ServerEntityModel, System.Nullable<Microsoft.Xna.Framework.Vector3>, CandideServer.SyncStrategies.SyncStrategy)CandideServer.SyncStrategies.SyncStrategy::NoSync()CandideServer.ServerManagers.AuraServerManager::TryApplyAuraToEntity(System.String, CandideServer.Entities.ServerEntityModel, System.Nullable<System.Guid>, Shared.Aura.Args.AbstractAuraArgs, CandideServer.SyncStrategies.SyncStrategy, System.Boolean)Shared.Entity.EntityWrapper::get_Fdt()Shared.Entity.EntitySystem::GetEntityById(System.Guid)
String literals
Failed to spawn new pot to put into catapult, even though it was empty. Clearing the carried id field.aura:special:no_loot
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
A69527D5D4390FAECECD36163E250857F627F6CCDA1DEB92A2D90E880AFC4258 - Body hash
5507F21288A0108D7D989314CEFD1F9A777F91FEBE8435C225D1B1A1F8138DDF - IL size1118
Referenced calls
Shared.Entity.EntityWrapper::get_Id()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.VehicleStateModel>::TryGetValue(!0, !1&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::GetValueOrDefault()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Entities.ServerEntityModel>::ContainsKey(!0)CandideServer.ServerManagers.VehicleServerManager::TryLeaveVehicle(System.Guid, System.Guid)System.Nullable<System.Guid>::.ctor(!0)CandideServer.ServerManagers.PlayerServerManager::IsPlayerEntityId(System.Nullable<System.Guid>)Shared.Entity.EntityWrapper::get_Fdt()CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController::TargetPlayer(System.Guid)Microsoft.Xna.Framework.Vector2::op_Inequality(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController::UpdateCatapultDirection(Microsoft.Xna.Framework.Vector2, System.Single&, Shared.Entity.EntityWrapper, System.Single, System.Int32)Shared.Entity.EntityWrapper::get_CarriedId()Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController::get_GetRotationAngle()Microsoft.Xna.Framework.Matrix::CreateRotationZ(System.Single, Microsoft.Xna.Framework.Matrix&)Microsoft.Xna.Framework.Vector3::Transform(Microsoft.Xna.Framework.Vector3&, Microsoft.Xna.Framework.Matrix&, Microsoft.Xna.Framework.Vector3&)Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)CandideCreator.Shared.Helpers.VectorExtension::ToVector2(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntitySystem::GetEntitiesTouchingCircleArea(Microsoft.Xna.Framework.Vector2, System.Single, System.Single, System.Single)System.Collections.Generic.List<Shared.Entity.EntityWrapper>::GetEnumerator()List.Enumerator<Shared.Entity.EntityWrapper>::get_Current()Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_Carriable()Shared.Entity.EntityWrapper::get_MaskRef()Shared.Entity.EntityWrapper::get_CarrierId()CandideServer.ServerManagers.EntityServerManager::TryAttach(System.Guid, System.Guid, Shared.Combat.EntityAttachPriority, CandideServer.SyncStrategies.SyncStrategy)List.Enumerator<Shared.Entity.EntityWrapper>::MoveNext()System.IDisposable::Dispose()Shared.Entity.EntityWrapper::get_CarriedEntity()
String literals
No driver in catapult who just threwUpdateServerCatapultController - We do not support yet firing the catapult without PreSetThrowArgs set
UpdateCatapultDirection
#
public System.Boolean UpdateCatapultDirection(Microsoft.Xna.Framework.Vector2 relativeAimPosition, System.Single& aimDistance, Shared.Entity.EntityWrapper catapultEntity, System.Single dt, System.Int32 upgradeLevel)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
6354CA48AFB0B9367F44D1F1347E8428E73AD7C133C9940A48C54C96838E81E5 - Body hash
C12683DE3ED6014ECF2EAD83998E34F4D6100490B723E621D861026A52B1381D - IL size263
Referenced calls
CandideServer.Entities.ControllerSets.Catapult.ServerCatapultController::GetMaxRange(System.Int32)Shared.Entity.EntityWrapper::get_Direction()CandideCreator.Shared.Helpers.VectorExtension::DirectionToVector2(System.Single)Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Length()CandideCreator.Shared.Helpers.CandideMathHelper::GetRelativeAngleBetweenVectors(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.MathF::Abs(System.Single)System.Math::Sign(System.Single)CandideCreator.Shared.Helpers.VectorExtension::ToFloatDirection(Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.CandideMathHelper::TurnDirection(System.Single, System.Single, System.Single)System.Math::Clamp(System.Single, System.Single, System.Single)System.Math::Abs(System.Single)Shared.Entity.EntityWrapper::set_Direction(System.Single)