Candide.Entities.Controllers.Other.FruitTreeController
Type JSONpublic class in Candide.Entities.Controllers.Other
Type metadata
- Assembly
Romestead - Namespace
Candide.Entities.Controllers.Other - Base type
Candide.Entities.Controllers.Other.VariableTextureControllerBase - Hash
73697436092944FC40BF24AC86C36DF37A65912D5D72E3690786853CC8D1303C
Relationships
Base type
Candide.Entities.Controllers.Other.VariableTextureControllerBase
Derived types
Referenced by types
Fields
| Name | Visibility | Signature |
|---|---|---|
LeafParticleEmitter# | public | public Candide.Particles.ParticleEmitter LeafParticleEmitter |
SwayTime# | private | private System.Single SwayTime |
_emitterTimer# | private | private System.Single _emitterTimer |
_fadeOffset# | private | private Microsoft.Xna.Framework.Vector2 _fadeOffset |
_pivotOffset# | private | private Microsoft.Xna.Framework.Vector3 _pivotOffset |
_swayDirection# | private | private System.Int32 _swayDirection |
_swayIntensity# | private | private System.Single _swayIntensity |
_topSprite# | private | private CandideCreator.Shared.Graphics.SpriteSheet _topSprite |
_topSpriteBaseFrame# | private | private System.Int32 _topSpriteBaseFrame |
_topSpriteOffset# | private | private Microsoft.Xna.Framework.Vector3 _topSpriteOffset |
_windSway# | private | private Candide.GameModels.Systems.Weather.WindSway _windSway |
Properties
| Name | Visibility | Signature |
|---|---|---|
TopSpriteFrame# | private | private System.Int32 TopSpriteFrame |
Methods
BeforeRender
#
public System.Void BeforeRender()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
29AB9E7245EC5A9EAE1A52DE80412EA4CDE1768AF5345960A3E06C39A496BAC1 - Body hash
E9927F550442AB13A11353BB27A356E69D08E95A67B09637D010B7BE04DD6D79 - IL size922
Referenced calls
Candide.GameModels.Systems.Weather.WindSway::GetBaseRotation()Shared.Entity.EntityWrapper::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToScreenSpace(Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Distance(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.MathHelper::Clamp(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector4::.ctor(System.Single, System.Single, System.Single, System.Single)Candide.Entities.Controllers.Other.FruitTreeController::get_TopSpriteFrame()System.MathF::Sin(System.Single)Microsoft.Xna.Framework.MathHelper::Lerp(System.Single, System.Single, System.Single)CandideCreator.Shared.Helpers.VectorExtension::ToXzy(Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Matrix::CreateScale(System.Single, System.Single, System.Single, Microsoft.Xna.Framework.Matrix&)Microsoft.Xna.Framework.Matrix::get_Translation()Microsoft.Xna.Framework.Vector3::op_Subtraction(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Matrix::set_Translation(Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Matrix::CreateTranslation(System.Single, System.Single, System.Single, Microsoft.Xna.Framework.Matrix&)Microsoft.Xna.Framework.MathHelper::ToRadians(System.Single)Microsoft.Xna.Framework.Matrix::CreateRotationZ(System.Single, Microsoft.Xna.Framework.Matrix&)Microsoft.Xna.Framework.Matrix::Multiply(Microsoft.Xna.Framework.Matrix&, Microsoft.Xna.Framework.Matrix&, Microsoft.Xna.Framework.Matrix&)Candide.Graphics.ImmediateSpriteArgs::.ctor(CandideCreator.Shared.Graphics.SpriteSheet)System.Nullable<Microsoft.Xna.Framework.Matrix>::.ctor(!0)Shared.Entity.EntityWrapper::get_FlashColor()System.Nullable<Microsoft.Xna.Framework.Vector4>::.ctor(!0)Candide.Graphics.DeferredRenderer::DrawSprite(Candide.Graphics.ImmediateSpriteArgs)CandideCreator.Shared.Helpers.CandideMathHelper::From0To1Between(System.Single, System.Single, System.Single)CandideCreator.Shared.Helpers.CandideMathHelper::Smooth(System.Single)CandideCreator.Shared.Helpers.CandideMathHelper::InterpolateBetween(System.Single, System.Single, System.Single)
EntityInitialize
#
public System.Void EntityInitialize()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
9B0F57FB33596E969FA452C1E5CC7CA0717D3B785993DF5D0F97CA9CC4B320B6 - Body hash
FBF17DEB68288F3AFB9223773EEEA1B3C3B1EA59058C0A64C2DED7106426F83B - IL size175
Referenced calls
Candide.Entities.Controllers.Other.VariableTextureControllerBase::SetVariableTexture(System.String)CandideCreator.Shared.Helpers.Parameters::GetSprite(System.String)CandideCreator.Shared.Helpers.Parameters::GetVector3(System.String, Microsoft.Xna.Framework.Vector3)CandideCreator.Shared.Helpers.Parameters::GetVector2(System.String, Microsoft.Xna.Framework.Vector2)Shared.Entity.EntityWrapper::get_Frame()Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)Candide.GameModels.Systems.Weather.WindSway::Initialize(System.Single)
String literals
texturetop_spritetop_sprite_offsetpivot_offsetfade_offset
OnDamaged
#
public System.Void OnDamaged(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
834C6DC6FC0FC5D45D92538B29A1C90E2B1F1E5FCC0B792E29BCA5B821606114 - Body hash
D7259B665EFF041926980A36ADD2539F405BDE56A49FF09A82F034AC4BD39884 - IL size238
Referenced calls
Candide.Toolkit.ClientToolDamageHelper::HandleTreeToolDamage(Shared.Entity.EntityWrapper, Shared.Combat.DamageResult, System.Boolean)Shared.Entity.EntityWrapper::get_Health()Shared.Entity.EntityWrapper::get_MaxHealth()Microsoft.Xna.Framework.MathHelper::Lerp(System.Single, System.Single, System.Single)CandideCreator.Shared.Helpers.RandomHelper::NextBool(System.Random)Candide.Entities.Controllers.Other.FruitTreeController::SpawnFallingLeafParticles(Shared.Combat.DamageResult)Shared.Combat.DamageResultHelper::GetViolenceVector(Shared.Combat.DamageResult, System.Single)Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Candide.Database.DebrisParticleDataBase::SpawnDebris(System.String, Microsoft.Xna.Framework.Vector3, System.Single, System.Single, System.Int32, System.Single, System.Single, Microsoft.Xna.Framework.Vector3, System.Single, System.Single)
String literals
bark
OnKilled
#
public Shared.Entity.Base.OnKilledBehaviour OnKilled(Shared.Entity.EntityKillInfo info)
Method metadata
- Visibilitypublic
- Return type
Shared.Entity.Base.OnKilledBehaviour - StaticFalse
- VirtualTrue
- Hash
C9067869E0E751DC795D29442357218FBD42B3C46184E1F3EF11FE8239ECC0B9 - Body hash
FA570E232DE9F379327D529987BEB644133F514B9041534B3471BFEEACB90591 - IL size133
Referenced calls
Shared.Entity.EntityWrapper::get_Position()Shared.Entity.EntityWrapper::get_Velocity()Shared.Entity.EntityWrapper::get_Fdt()Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Candide.Entities.Controllers.Other.FruitTreeController::get_TopSpriteFrame()Candide.Entities.Controllers.Other.VariableTextureControllerBase::SpawnParticles(Microsoft.Xna.Framework.Vector3, System.Single, System.Single, System.Int32, System.Single, System.Single, Microsoft.Xna.Framework.Vector3, CandideCreator.Shared.Graphics.SpriteSheet, System.Int32, CandideCreator.Shared.Helpers.Parameters)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)
OnOutOfHealth
#
public System.Boolean OnOutOfHealth(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
A9EDAB7E03F2D06EA305D53D5E1477282EF0029C9ADD5B7EAC44014FEE47FBDC - Body hash
B603FBF9395DD52D4E091A67E7F5A1BB538E1D1AD844988FD98115CC3CB47DB6 - IL size94
Referenced calls
Shared.Entity.EntityWrapper::get_MaxHealth()Shared.Entity.EntityWrapper::set_Health(System.Single)
OnProjectileHit
#
public System.Boolean OnProjectileHit(System.Int32 id, Shared.Combat.Spells.Casting.CastSpell spell)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
B1402EE40E55899786D1D68600E250BA098493CFD9539927E21E2317B98690FA - Body hash
28CE407124EEC7B8896CA3A14FA5B7DC2742099D7BAA28285E360D7456F8FD49 - IL size2
OnServerSetState
#
public System.Void OnServerSetState(System.Int32 state)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
FF17CE6279204F23C1CA472DFB0591FB2BC3D2811A201B57303169E6DC297323 - Body hash
DA45C1A4F57F35DAB6E682CB54A12B8EBE74FCDB71BFC5DA668FE44E5E5ACB16 - IL size318
Referenced calls
CandideServer.EventBus.EventBusManager::SendEvent(System.String, System.Object, System.Boolean)Candide.Sound.SoundExtensions::EmitSoundOneShot(Shared.Entity.EntityWrapper, System.String, System.Single, System.Single)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)Shared.Entity.EntityWrapper::get_MaskRef()Shared.Entity.Components.ComponentExtension::SetFlag(Shared.Entity.Components.Component&, Shared.Entity.Components.Component)Shared.Entity.Components.ComponentExtension::RemoveFlag(Shared.Entity.Components.Component&, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_Frame()Shared.Entity.EntityWrapper::set_Frame(System.Int32)CandideServer.Entities.Controllers.ServerFruitTreeController::SetStumpCollision(Shared.Entity.EntityWrapper)
String literals
client-tree-fellevent:/environment/tree/tree_shakeevent:/environment/tree/tree_falling
SpawnFallingLeafParticles
#
private System.Void SpawnFallingLeafParticles(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
B8D2891E226E54CDDDD0BA5A6F1A2A3290E9C5B5B20884B328EA823F15806FBD - Body hash
9C8E73C977939A265DF2EC28E65A28673368603E86A146EF59982595FC31AB1A - IL size289
Referenced calls
Candide.Database.ParticleEmitterDataBase::GetNewParticleEmitter(System.String)Candide.Entities.Controllers.Other.FruitTreeController::get_TopSpriteFrame()Candide.Entities.Controllers.Other.VariableTextureControllerBase::GetParticle(System.String, CandideCreator.Shared.Graphics.SpriteSheet, System.Int32, CandideCreator.Shared.Helpers.Parameters)Candide.Particles.ParticleEmitter::SetOverrideParticle(Candide.Data.DebrisParticleData)Shared.Entity.EntityWrapper::get_MaxHealth()Shared.Combat.DamageResultHelper::GetViolenceVector(Shared.Combat.DamageResult, System.Single)Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Candide.Particles.ParticleEmitter::SpawnParticle()CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)Candide.Particles.ParticleEmitter::SetParticleProperties(System.Int32)
String literals
hit_tree_leaf_emitterleaf_particle
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
FFF0D6822445063C9DC81D480D4E8DC5B8A49EDA8F7123182D865C3D7EC64F05 - Body hash
39AC19905EF5DD3D970F5C0EE393036590C5F0A9CA9E51772C454828119E1E3B - IL size136
Referenced calls
Shared.Entity.EntityWrapper::get_Fdt()Candide.GameModels.Systems.Weather.WindSway::Update(System.Single)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)