CandideServer.Entities.Controllers.ServerFruitTreeController
Type JSONpublic class in CandideServer.Entities.Controllers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Entities.Controllers - Base type
Shared.Entity.Base.AbstractController - Hash
9BFE5F67E1B23388395BAD885B4F21C2601CBBD0C7A2DEA5B0E87AE7E4D0C868
Relationships
Base type
Fields
| Name | Visibility | Signature |
|---|---|---|
DestroyWhenOutOfHealth# | public | public System.Boolean DestroyWhenOutOfHealth |
DroppedStickKey# | public | public System.String DroppedStickKey |
FallLeft# | public | public System.Boolean FallLeft |
FallTimer# | public | public System.Single FallTimer |
FruitType# | public | public CandideServer.Entities.Controllers.FruitType FruitType |
HarvestKey# | public | public System.String HarvestKey |
HarvestTime# | public | public System.DateTime HarvestTime |
HasDroppedFirstStick# | public | public System.Boolean HasDroppedFirstStick |
LogDropAmount# | public | public System.Int32 LogDropAmount |
MaxDrops# | public | public System.Int32 MaxDrops |
MinDrops# | public | public System.Int32 MinDrops |
Methods
DropFruit
#
public System.Void DropFruit(Shared.Entity.EntityWrapper interactingEntity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
B8F6513450DCDEF8A345AD3084F3E0F85982EF11118CB2B1DC598F412B6655F9 - Body hash
93EF0EF3B43D11204D4DAA98972AC506E1C80AE5236E8B2BE8F7AE31D6F00309 - IL size430
Referenced calls
CandideServer.Entities.Controllers.ServerFruitTreeController::SetHarvestTimer()System.Random::Next(System.Int32, System.Int32)CandideServer.ServerManagers.PlayerServerManager::GetPlayerFromEntity(Shared.Entity.EntityWrapper)Shared.Helpers.PlayerFlagsHelper::GetFlagValue1(Shared.Models.Player.PlayerCharacterModel, System.String, System.Single)Shared.Entity.EntityWrapper::get_Shape()Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)System.Nullable<System.Int32>::.ctor(!0)CandideServer.ServerManagers.WorldItemServerManager::SpawnNewItemAsWorldItem(System.String, System.Int32, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>, System.Nullable<System.Guid>, System.String, System.Nullable<System.Int32>)
Called by
String literals
food:olivefood:grapefood:applefood:apricotfood:pine_nutspomonas_gift
DropSeed
#
public System.Void DropSeed()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
BA6DDB212976C914EA382479DCD530A7E9AFE707D22A439FB61800C4737239FA - Body hash
8976126973561C20851704BDA8222DC4C1D55EE437ADBDBCB5D0995A0F44FE2D - IL size167
Referenced calls
Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)CandideServer.ServerManagers.WorldItemServerManager::SpawnNewItemAsWorldItem(System.String, System.Int32, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>, System.Nullable<System.Guid>, System.String, System.Nullable<System.Int32>)
String literals
seed:oliveseed:grapesseed:tree:appleseed:tree:apricotseed:tree:pineseed:tree
EntityInitialize
#
public System.Void EntityInitialize()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
1BAF97C9A0EFCBD1EB82EE65C0B5A3621385850D2605157DBB277D5DB5A2A07F - Body hash
10B33D3EA3E7D10320228855DCC9BC4EA8A4D0180F4EB899B09715CB67C826A9 - IL size245
Referenced calls
CandideCreator.Shared.Helpers.Parameters::GetEnum(System.String, !!0)CandideCreator.Shared.Helpers.Parameters::GetInt(System.String, System.Int32)System.Object::ToString()CandideCreator.Shared.Helpers.Parameters::GetString(System.String, System.String)System.String::op_Inequality(System.String, System.String)CandideServer.SyncStrategies.SyncStrategy::Everyone()CandideServer.Entities.ServerEntitySystemManager::UpdateEntityParameter(Shared.Entity.EntityWrapper, System.String, System.String, CandideServer.SyncStrategies.SyncStrategy, System.Boolean)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)CandideCreator.Shared.Helpers.Parameters::TryGetLong(System.String, System.Int64&)System.DateTime::.ctor(System.Int64)CandideServer.Entities.Controllers.ServerFruitTreeController::SetHarvestTimer()
String literals
fruitmax_dropsmin_dropslog_drop_amountharvest
Explode
#
private System.Void Explode()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
2116ECCD5351DA636B7ECC044D9609ABFFA6C443C105CC61E271ABED429E3BD1 - Body hash
89287E29F891EBD5FE6581B68015473220CA5FC70EFA8F41328E10A4EBED8917 - IL size31
Referenced calls
Shared.Entity.EntityWrapper::set_Health(System.Single)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)
OnDamaged
#
public System.Void OnDamaged(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
A3C0D7835C6AD7464A5BBA252C4686C0AED521FB33AD30C993E842A57AC5AC87 - Body hash
019F9D208F88B6CB0EC32E734F6E1363C6C06AD4B28011957CBF4975CB8BD73E - IL size274
Referenced calls
CandideServer.Entities.Controllers.ServerFruitTreeController::Explode()CandideServer.ServerManagers.PlayerServerManager::TryGetPlayerFromEntity(Shared.Entity.EntityWrapper, CandideServer.ServerServices.ServerJoinedPlayerModel&)System.Collections.Generic.Dictionary<System.String, Shared.Models.Skill.CharacterSkill>::TryGetValue(!0, !1&)Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_Stats()System.Nullable<Shared.Models.Stats.EntityStats>::.ctor(!0)CandideServer.Helpers.ServerEquipmentHelper::GetPlayerEquipment(Shared.Entity.EntityWrapper)Shared.Helpers.ToolDamageHelper::HandleResourceDamage(Shared.Models.Items.EquipmentType, Shared.Entity.EntityWrapper, Shared.Entity.EntityWrapper, System.Nullable<Shared.Models.Stats.EntityStats>, Shared.Models.Items.ItemInstanceModel[], Shared.Combat.DamageResult, System.Boolean, System.Boolean, System.Single, Shared.Models.Skill.CharacterSkill)CandideServer.Entities.Controllers.ServerFruitTreeController::DropFruit(Shared.Entity.EntityWrapper)
String literals
skill:woodcutting
OnInteract
#
public System.Void OnInteract(Shared.Entity.EntityWrapper otherEntity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
E2BB0AEBF6363D08EB2EC88FEAA9253236E18017E15CAB65F708F0F9ABB80EC9 - Body hash
4320194CA9A6B609EEDCB3DA896A450A064B7D10B120A5DE8A669641D3A7ED85 - IL size8
OnOutOfHealth
#
public System.Boolean OnOutOfHealth(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
A436B26578DC5D9089D5A2ABB4EDE6DEA99473B1202F692CF3FF2B52D585A9E6 - Body hash
3A01E989309F23556B0A8FFD2B3F02C5E656AD56658332C5CE4B500C2F60BA28 - IL size263
Referenced calls
Shared.Combat.DamageTypesArray::get_Item(System.Int32)CandideServer.Database.ServerDropTablesDataBase::GetDropTableItemListOrNull(System.String)Shared.Entity.EntityWrapper::get_MaskRef()Shared.Entity.Components.ComponentExtension::SetFlag(Shared.Entity.Components.Component&, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::set_DropTable(Shared.Models.DropTables.DropTableSystem)CandideServer.ServerManagers.PlayerServerManager::TryGetPlayerFromEntity(Shared.Entity.EntityWrapper, CandideServer.ServerServices.ServerJoinedPlayerModel&)Shared.Entity.EntityWrapper::get_Id()Shared.Entity.EntityWrapper::get_BaseGuid()CandideServer.Models.Quests.EventModels.OnTreeFelledEvent::Send(System.Guid, System.Guid, System.Guid, System.Guid)CandideServer.Entities.Controllers.ServerFruitTreeController::StartFalling()Shared.Entity.EntityWrapper::get_MaxHealth()Shared.Entity.EntityWrapper::set_Health(System.Single)
String literals
tree_fire
OnProjectileHit
#
public System.Boolean OnProjectileHit(System.Int32 id, Shared.Combat.Spells.Casting.CastSpell spell)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
E5C408BA8CBB8C3DECD7391806F595A25534CF9D212E2A626277D448DC7FE688 - Body hash
7CBE9D2DDA08E78B7B2E5791DDED13ECDD293118814DD15B21B34089C698A8BF - IL size26
OnRemove
#
public System.Void OnRemove(Shared.Entity.EntityRemoveInfo entityRemoveInfo)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
3287D99A732D1D4054EC22214439E3B8721F8A0F5E6C3BC2B329EC5FA0F3B7DB - Body hash
8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55 - IL size1
OnServerSetState
#
public System.Void OnServerSetState(System.Int32 state)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
6B45B062A5165D88F9796D3E3E0559BAC56294C20BFF63280EBE5CF9BB8FBEAB - Body hash
ED2E1D19FECD7F649A66CEA8BB390B1372ADC1757BCD70BAF1D59DFB17DE9274 - IL size285
Referenced calls
Shared.Entity.EntityWrapper::get_MaskRef()Shared.Entity.Components.ComponentExtension::RemoveFlag(Shared.Entity.Components.Component&, Shared.Entity.Components.Component)CandideServer.Entities.Controllers.ServerFruitTreeController::SetStumpCollision(Shared.Entity.EntityWrapper)Shared.Entity.EntityWrapper::get_PositionX()Shared.Entity.EntityWrapper::get_PositionY()Shared.Helpers.WorldTileHelper::GetTilePosition(System.Single, System.Single)CandideServer.Helpers.ServerWorldHelper::GetEntityWorldId(Shared.Entity.EntityWrapper)CandideServer.Helpers.ServerWorldTileHelper::TryGetWorldTile(System.Guid, System.Int32, System.Int32, Shared.Models.WorldTile&)Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::ToPoint()Microsoft.Xna.Framework.Point::.ctor(System.Int32, System.Int32)Microsoft.Xna.Framework.Rectangle::.ctor(Microsoft.Xna.Framework.Point, Microsoft.Xna.Framework.Point)System.Nullable<WorldTile.StructureType>::.ctor(!0)CandideServer.ServerManagers.WorldTileServerManager::FillRectangle(Microsoft.Xna.Framework.Rectangle, System.Nullable<WorldTile.GroundType>, System.Nullable<WorldTile.StructureType>)
OnThrownEntityCollision
#
public System.Boolean OnThrownEntityCollision(Shared.Entity.EntityWrapper thrownEntity)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
283EA2C23988DF43D5E86312A52090FA551A580E73FE21919D005AE92C2D8080 - Body hash
F18A8BA0A8AB23BF83989FB32EFF5E93E47D37A31AC8FC4B2FDFD483DAB3B35F - IL size343
Referenced calls
System.Random::Next(System.Int32, System.Int32)Shared.Entity.EntityWrapper::get_ThrowerId()System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()System.Nullable<System.Guid>::.ctor(!0)CandideServer.ServerManagers.PlayerServerManager::IsPlayerEntityId(System.Nullable<System.Guid>)CandideCreator.Shared.Helpers.Parameters::Set(System.String, System.String)Shared.Entity.EntityWrapper::get_Shape()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)CandideServer.ServerManagers.PlayerCharacterServerManager::GetPlayerCharacterFromEntityId(System.Nullable<System.Guid>)System.Nullable<System.Int32>::.ctor(!0)CandideServer.ServerManagers.WorldItemServerManager::SpawnNewItemAsWorldItem(System.String, System.Int32, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>, System.Nullable<System.Guid>, System.String, System.Nullable<System.Int32>)
String literals
stick_droppedtruematerial:wood_stick
SetHarvestTimer
#
public System.Void SetHarvestTimer()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
B8DFC41AC35D2BE3CA0ADC18C750A71F656D8BD9AAB3BAF272FA7D172C28B7D9 - Body hash
7E0B8FAC57F37A2B5D325570FC13BD67A3C40A82C6AF933577A68459142AED83 - IL size56
Referenced calls
Called by
String literals
harvest
SetStumpCollision
#
public System.Void SetStumpCollision(Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
70F061C1C660BFDD1972D4D231DF5FA3577C81612BED740B65796C69E92BD172 - Body hash
BE8E4E8CAE09C176AC5F80D9DCBF3AAB6C01DBE15BB78465BF336F2D6D9D7CED - IL size28
Referenced calls
CandideCreator.Shared.Collision.CollisionCircle::.ctor(System.Single)Shared.Entity.EntityWrapper::set_Shape(CandideCreator.Shared.Collision.CollisionShape)Shared.Entity.EntityWrapper::set_CollisionHeight(System.Single)
SpawnLogs
#
public System.Void SpawnLogs()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
B08E17FACC7E0ECCED649937BD1275E381E55B04D689BAE284A8C23FE40FDD17 - Body hash
1B865A497C4807E6E81761CEB35E69295B163BE83ECF98E894ED56E12DBDC3AD - IL size264
Referenced calls
System.Collections.Generic.List<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>::.ctor()CandideServer.MessageModels.Entities.RequestSpawnEntityMessage::.ctor()Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Subtraction(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::get_Zero()System.Collections.Generic.List<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>::Add(!0)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)CandideServer.Helpers.ServerWorldHelper::GetEntityWorldId(Shared.Entity.EntityWrapper)CandideServer.ServerManagers.EntityServerManager::SpawnEntities(System.Collections.Generic.IReadOnlyCollection<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>, System.Guid)
StartFalling
#
private System.Void StartFalling()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
8F7C3DE0472D0BD5E4804A384B38C273B2118A90E7D4F54E693B045676837502 - Body hash
FAF758F6DAD24FBB3ACB2A4F774B503CF6D224F953A0788713CB9EAE2E4C4407 - IL size36
Referenced calls
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
9E9576F929F8761E086A9D81112C17B35428E49638F3C7BB5F2B661195774CB9 - Body hash
652E90F6B810880DB218BF703F386E6151CEA87979BF1CF3FE93F3A004FD68FE - IL size170
Referenced calls
Shared.Entity.EntityWrapper::get_Fdt()CandideServer.Entities.Controllers.ServerFruitTreeController::SpawnLogs()Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)System.DateTime::op_Subtraction(System.DateTime, System.DateTime)System.TimeSpan::FromDays(System.Double)System.TimeSpan::op_GreaterThan(System.TimeSpan, System.TimeSpan)