CandideServer.Entities.Controllers.ServerTreeController
Type JSONpublic class in CandideServer.Entities.Controllers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Entities.Controllers - Base type
Shared.Entity.Base.AbstractController - Hash
8A0F8FAB582A0F8AD806F62DD2684C96D1EE63519CA5BDAC1A87573EED1BB042
Relationships
Base type
Fields
| Name | Visibility | Signature |
|---|---|---|
DestroyWhenOutOfHealth# | public | public System.Boolean DestroyWhenOutOfHealth |
Diagonal# | private | private System.Single Diagonal |
DroppedStickKey# | public | public System.String DroppedStickKey |
EmptyStubCheckTime# | public | public System.Single EmptyStubCheckTime |
EmptyStubCheckTimer# | public | public System.Single EmptyStubCheckTimer |
EntityOnStubId# | public | public System.Nullable<System.Guid> EntityOnStubId |
EntityOnStubKey# | public | public System.String EntityOnStubKey |
FallLeft# | public | public System.Boolean FallLeft |
FallTimer# | public | public System.Single FallTimer |
HasDroppedFirstStick# | public | public System.Boolean HasDroppedFirstStick |
LogCount# | public | public System.Int32 LogCount |
Offset# | private | private System.Single Offset |
Offsets# | private | private Microsoft.Xna.Framework.Vector3[] Offsets |
StartAsStubKey# | public | public System.String StartAsStubKey |
Properties
| Name | Visibility | Signature |
|---|---|---|
EntityOnStub# | public | public Shared.Entity.EntityWrapper EntityOnStub |
Methods
ClearEntityOnStub
#
private System.Void ClearEntityOnStub()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
99B435562AEF1E8F3243928C95520C5CD4E6889A833A7BC635865E60D2C5FB8D - Body hash
0A65B2C06006B27ECA3950ECA3CDFF9BF877D3FE6A270FB032C9025A9A31F9CF - IL size133
Referenced calls
CandideServer.Entities.Controllers.ServerTreeController::get_EntityOnStub()Shared.Entity.EntityWrapper::set_Immovable(System.Boolean)CandideCreator.Shared.Helpers.Parameters::GetGuidOrNull(System.String, System.Nullable<System.Guid>)System.Nullable<System.Guid>::get_HasValue()CandideServer.Entities.ServerEntitySystemManager::UpdateEntityParameter(Shared.Entity.EntityWrapper, System.String, System.String, CandideServer.SyncStrategies.SyncStrategy, System.Boolean)System.Nullable<System.Guid>::get_Value()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Entities.ServerEntityModel>::TryGetValue(!0, !1&)
Called by
String literals
eos
EmptyStubCheckForWood
#
private System.Void EmptyStubCheckForWood()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
89B32D87120DB50E6A6A6D5EF262CE48DDE1E7D872E8A098B88599A7343247B3 - Body hash
6889B92B73BAE571109F9EE294E3A2C9D478B8F9DDC5B8F9A114F2EEF409EF11 - IL size115
Referenced calls
Shared.Entity.EntityWrapper::get_Position2()Shared.Entity.EntityWrapper::get_PositionZ()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()CandideServer.Entities.Controllers.ServerTreeController::TryPutEntityOnStub(Shared.Entity.EntityWrapper)List.Enumerator<Shared.Entity.EntityWrapper>::MoveNext()System.IDisposable::Dispose()
EntityInitialize
#
public System.Void EntityInitialize()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
DA820AD5F5A2ECC2FB6345C6E0DEDCB3DA592D323E4F1D3EA69C90AA7410CA5D - Body hash
48C3BC6F3A1A0F5561B735C1D1E802E0926E6CE7A8675540A28A99885F7FB862 - IL size239
Referenced calls
CandideCreator.Shared.Helpers.Parameters::GetBool(System.String, System.Boolean)Shared.Entity.EntityWrapper::get_Id()System.Object::GetHashCode()CandideCreator.Shared.Helpers.MathExtension::Mod(System.Int32, System.Int32)CandideCreator.Shared.Helpers.Parameters::GetGuidOrNull(System.String, System.Nullable<System.Guid>)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Entities.ServerEntityModel>::TryGetValue(!0, !1&)CandideServer.Entities.Controllers.ServerTreeController::TryPutEntityOnStub(Shared.Entity.EntityWrapper)Shared.Entity.EntityWrapper::get_MaskRef()Shared.Entity.Components.ComponentExtension::RemoveFlag(Shared.Entity.Components.Component&, Shared.Entity.Components.Component)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)
String literals
stick_droppedstubeos
Explode
#
private System.Void Explode()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
F50446A28A3146AB4D46613AF997CAB3B060FF2D3B7518567D23797C25364838 - Body hash
EF5CDD6D2168983BC9E19D79B4E6FB1718A7441179046BB5B398D51328096786 - IL size31
Referenced calls
Shared.Entity.EntityWrapper::set_Health(System.Single)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)
GetValidSpawnPosition
#
private Microsoft.Xna.Framework.Vector3 GetValidSpawnPosition(Microsoft.Xna.Framework.Vector3 spawnOffset, System.Int32& offsetIndex, System.Boolean& usingFallback)
Method metadata
- Visibilityprivate
- Return type
Microsoft.Xna.Framework.Vector3 - StaticFalse
- VirtualFalse
- Hash
D1DAB6A1238CFCBC1D495F7F8899637BC2B45BE1E0416732FFF94BB889A3EA5A - Body hash
4B1F7577F0248AB858D6377468EF729C6007E04C4C6394199F70972034038E73 - IL size158
Referenced calls
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.EntityWrapper::get_WorldId()BM.EnemyUtil::IsGroundTile(Microsoft.Xna.Framework.Vector2, System.Guid)CandideServer.Entities.Controllers.ServerTreeController::MirrorIfNeeded(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
HandleTreeDamage
#
public System.Void HandleTreeDamage(Shared.Combat.DamageResult damageResult, Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
33B677412151A8283FA36232953D5BCCAE1C8E2BC0C6B3C2B4CCD8E636B0EC89 - Body hash
14A0DE0C96E016255663266168E098CF5800A300CF279ABD61D93A4C8896DFBD - IL size151
Referenced calls
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)
Called by
String literals
skill:woodcutting
MirrorIfNeeded
#
private Microsoft.Xna.Framework.Vector3 MirrorIfNeeded(Microsoft.Xna.Framework.Vector3 offset)
Method metadata
- Visibilityprivate
- Return type
Microsoft.Xna.Framework.Vector3 - StaticFalse
- VirtualFalse
- Hash
A90568A1BE54410957FF2EAFBE265384047D2E0967E7EDD3203DF0D5ECCA4E6F - Body hash
12A4A9ACAAA8654A661EC9D3E68D4BC631B4846E894460746C88D9CFDB3F00E0 - IL size36
Referenced calls
Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)
OnDamaged
#
public System.Void OnDamaged(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
1E0AFE7C2F1FA92A5DC3BA7FA6934965236E568DF55F32F7E5EF0AEF0AF2B2C5 - Body hash
164E099256687316413F09EA523173B43D2467F33D3159A2FACDF9F75D53768C - IL size186
Referenced calls
CandideServer.Entities.Controllers.ServerTreeController::Explode()CandideServer.Entities.Controllers.ServerTreeController::HandleTreeDamage(Shared.Combat.DamageResult, Shared.Entity.EntityWrapper)Shared.Entity.EntityWrapper::get_MaxHealth()Shared.Combat.DamageResultHelper::GetViolenceVector(Shared.Combat.DamageResult, System.Single)
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
A06D6256D09CC29C10E2079AA81A0131BF9C1228DE7343A2CAD8955D0BF75F09 - Body hash
8CD84F14FE66FB8B2DCB988034487E127D1A7EC30DC1122D68B3C510685FB6FE - IL size27
OnOutOfHealth
#
public System.Boolean OnOutOfHealth(Shared.Combat.DamageResult damageResult)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
A335FDD6562343D69404294F0F00903515632845FE59E496167E6C3E7D2F5DCE - Body hash
140F9F57AD2A9328A603A3AC0DE426CCF5ACEAEA6AB1C5C9294513FA8A5B0B98 - IL size246
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.ServerTreeController::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
AE3252FC9253E84714E6F955524BE4F32369D1A104ADCB7B41281CABAABF3C2E - Body hash
BC7176B90F3F9BADA59BEB4C9803C24214E24C4564546AC33840532518C687D4 - IL size13
OnRemove
#
public System.Void OnRemove(Shared.Entity.EntityRemoveInfo entityRemoveInfo)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
67673ADD2B56965959F5D08DE374507F77733E54741EA6896656FC1CBE1CBC72 - Body hash
0C2A036E85FE897A043B8C1DB8E43F4DA81A09821E396E31CBE955581A8A57AA - IL size70
Referenced calls
OnServerSetState
#
public System.Void OnServerSetState(System.Int32 state)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
069A26A9513BCDE699C6A8403FF0D6F8F54301A8F8C991D671DD3814592C9BCE - Body hash
36ECDFD6B0FEFFAA613F884ECB84B8A5A78D2D1C2398E73D53AD5A7036E92ABF - IL size417
Referenced calls
CandideServer.Entities.Controllers.ServerTreeController::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>)CandideServer.Entities.Controllers.ServerTreeController::ClearEntityOnStub()Shared.Entity.EntityWrapper::get_MaskRef()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.ServerTreeController::get_EntityOnStub()Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)Shared.Entity.EntityWrapper::set_Immovable(System.Boolean)Microsoft.Xna.Framework.Vector3::get_Zero()Shared.Entity.EntityWrapper::set_Acceleration(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_Velocity(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_StandingOnEntityId(System.Int32)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)Shared.Entity.EntityWrapper::set_Position(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_IsThrown(System.Boolean)
OnThrownEntityCollision
#
public System.Boolean OnThrownEntityCollision(Shared.Entity.EntityWrapper thrownEntity)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
F06D36CF720B8339EF47683A29A93E62E5ABD5C29BF6869B150F3A1399CFA6BA - Body hash
C75124937ABF645DE503CE5E6A4F105D1F46838D0079C50BF0A261835F4AAC4B - IL size328
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
SetStumpCollision
#
public System.Void SetStumpCollision(Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
5FF6C38F0F3272101B7DF9158EB0D7FE574070DCAAEC0B42219C8DFDAB7EDF40 - Body hash
8870B8EFBE10B7BB0831604033AB5233A6EF89F6B242B12EAF12BF1B631E8515 - IL size41
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)Shared.Entity.EntityWrapper::get_CollisionMaskRef()CandideCreator.Shared.Collision.CollisionMasksExtension::SetFlag(CandideCreator.Shared.Collision.CollisionMasks&, CandideCreator.Shared.Collision.CollisionMasks)
SpawnLogs
#
private System.Void SpawnLogs()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
8385F5CC0069D1057770D1F594D685D0C183ED7BA3996FB45800DCBBA4F2FBBF - Body hash
DD3EC56C1206D5155DFC512E2EC5D02742D12F868020E80293F4C784535081C2 - IL size164
Referenced calls
System.Collections.Generic.List<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>::.ctor()Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)CandideServer.Entities.Controllers.ServerTreeController::GetValidSpawnPosition(Microsoft.Xna.Framework.Vector3, System.Int32&, System.Boolean&)CandideServer.MessageModels.Entities.RequestSpawnEntityMessage::.ctor()Microsoft.Xna.Framework.Vector3::get_Zero()System.Collections.Generic.List<CandideServer.MessageModels.Entities.RequestSpawnEntityMessage>::Add(!0)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
63069592D12A0F37F4CC30520918F75BC6CD44404C61AC0F099B91EFC7DE1594 - Body hash
F66D829A3F5B98371A06A91862088D2E539D1054E69D4F556AC77F93D9F56682 - IL size30
TryPutEntityOnStub
#
private System.Boolean TryPutEntityOnStub(Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
0075EA0EDE28D88C2F781C13D91D90AB44BAA9A01FC18EA42E460354B7C6597B - Body hash
FC7F0CAF2FE5E56453DEE43C586CD11C72030FF035F1B092A34AD1211D1A5260 - IL size259
Referenced calls
Shared.Entity.EntityWrapper::get_Mask()System.Enum::HasFlag(System.Enum)Shared.Entity.EntityWrapper::get_Carriable()Shared.Entity.EntityWrapper::get_CarrierId()System.Nullable<System.Guid>::get_HasValue()Shared.Entity.EntityWrapper::get_StandingOnEntityId()Shared.Entity.EntityWrapper::get_Id()System.Nullable<System.Guid>::.ctor(!0)Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)CandideCreator.Shared.Helpers.Parameters::GetGuidOrNull(System.String, System.Nullable<System.Guid>)System.Nullable<System.Guid>::get_Value()System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Inequality(System.Guid, System.Guid)System.Object::ToString()CandideServer.SyncStrategies.SyncStrategy::Everyone()CandideServer.Entities.ServerEntitySystemManager::UpdateEntityParameter(Shared.Entity.EntityWrapper, System.String, System.String, CandideServer.SyncStrategies.SyncStrategy, System.Boolean)
Called by
String literals
eos
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
3043ECE032665A18048287D7757ED4E5A42EDCD5D409542A886D83003EDFD98E - Body hash
709D25933775B8AE97032E854B03AB51981581DE064159D2F1BEB2881AF57E78 - IL size233
Referenced calls
Shared.Entity.EntityWrapper::get_Fdt()CandideServer.Entities.Controllers.ServerTreeController::SpawnLogs()Shared.Entity.Base.AbstractController::OnServerSetState(System.Int32)Shared.Entity.EntityWrapper::set_Standable(System.Boolean)CandideServer.Entities.Controllers.ServerTreeController::EmptyStubCheckForWood()CandideServer.Entities.Controllers.ServerTreeController::get_EntityOnStub()Shared.Entity.EntityWrapper::get_StandingOnEntityId()Shared.Entity.EntityWrapper::get_CarrierId()System.Nullable<System.Guid>::get_HasValue()