Romestead Assembly Reference

Shared.Entity.Components.AggressiveComponent

Type JSON

public struct in Shared.Entity.Components

Methods10
Properties0
Fields10
Events0
Type metadata
  • AssemblyShared
  • NamespaceShared.Entity.Components
  • Base typeSystem.ValueType
  • Hash609D759A7B5DDC9181D2B146BF9AE236F24F5B4275A07A53D72A71D76FA92849

Relationships

Base type

System.ValueType

Fields

NameVisibilitySignature
AggroFieldpublicpublic Shared.Entity.Aggro.IAggroField AggroField
FleeingCreaturepublicpublic System.Boolean FleeingCreature
LastThreatEventPositionpublicpublic Microsoft.Xna.Framework.Vector2 LastThreatEventPosition
MovementBasedThreatpublicpublic System.Boolean MovementBasedThreat
Targetpublicpublic Shared.Entity.EntityWrapper Target
ThreatDecaypublicpublic System.Single ThreatDecay
ThreatDecayTimerpublicpublic System.Single ThreatDecayTimer
ThreatTablepublicpublic Shared.Entity.Components.ThreatTable ThreatTable
_checkTriggerTimerprivateprivate System.Single _checkTriggerTimer
_nonAggressiveTimerprivateprivate System.Single _nonAggressiveTimer

Methods

CheckIfAllyHasTarget

private System.Boolean CheckIfAllyHasTarget(Shared.Entity.EntityWrapper wrapper, System.Single searchRadiusInTiles)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Boolean
  • StaticFalse
  • VirtualFalse
  • HashB375C29074F0FA179639FFE9B50EE126AB734A8FAE6DFE61D9F4416C9D2E4B4C
  • Body hash966B3503D3118BC797175DD6BE74257F3014E347AEFE79EE4EB038C154487218
  • IL size216
Referenced calls
Called by

CheckThreatTableIsOk

internal System.Void CheckThreatTableIsOk(Shared.Entity.EntityWrapper entity)

Method metadata
  • Visibilityinternal
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash4C6D760CCE6A5D08F0C5C218E1D42177F95F0555D38932435F89FF15BD11AB58
  • Body hashB2E4BB5776195DBA37A8D69D9E7B3197BB4C5CEE541B023C733CF3F07FBE5EF6
  • IL size76
Referenced calls
  • System.Object::Equals(System.Object, System.Object)
  • System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Clear()
  • Shared.Entity.Components.ThreatTable::.ctor()
Called by

ClearAggro

public System.Void ClearAggro(Shared.Entity.EntityWrapper entity)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • HashF7D47331CDD0DFD16381C7EE914BD0F41EF1A8C3AFE0E3FD5F7BC6FDB4B56128
  • Body hash37C59552D458F64001462ABCA372B176492FC451FB810B72B8A53B9A4B766D94
  • IL size24
Referenced calls
Called by

GenerateThreat

public System.Void GenerateThreat(Shared.Entity.EntityWrapper threateningEntity, System.Single threatAmount, Shared.Entity.EntityWrapper threatenedEntity)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash3F4B31C93B1E87015780A08EEAA98CDF25FDE64D70F069333BE66D95F7BD169B
  • Body hashFF2FB8242C8CA806B62AC16FC8388151B0471AF42867511C6D3D90385D0A9C33
  • IL size182
Referenced calls
Called by

GetHighestThreatEntity

public Shared.Entity.EntityWrapper GetHighestThreatEntity()

Method metadata
  • Visibilitypublic
  • Return typeShared.Entity.EntityWrapper
  • StaticFalse
  • VirtualFalse
  • Hash389DDC00D30B1BC3B6B063CAAC31383E0B02FC5AECCF3819D5897CD8ADD76C73
  • Body hashED71F0EE3D0056534367CA491D52B87D3596D9E013134CD922612EA35D62B329
  • IL size161
Referenced calls
  • System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()
  • Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()
  • System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Deconstruct(!0&, !1&)
  • System.Math::Abs(System.Single)
  • Shared.Entity.EntityWrapper::get_Position2()
  • Microsoft.Xna.Framework.Vector2::DistanceSquared(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
  • Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()
  • System.IDisposable::Dispose()
Called by

SetEntityThreatToMax

public System.Void SetEntityThreatToMax(Shared.Entity.EntityWrapper threateningEntity, Shared.Entity.EntityWrapper threatenedEntity, System.Single extraThreat)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash8D40B7676CC1ABF071074121DC485B101C857D0591EFE28430ED99E642BAEB73
  • Body hash46EB152A4CEAFF92D90513AC9CB4B90DD429B56FE0BDF1CC0158ED0913E16C1B
  • IL size131
Referenced calls
Called by

Update

public System.Void Update(Shared.Entity.EntityWrapper entity)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash9C40DEE1AE5C687B4DFFF7B6346640718B1CC3FC76FCF0E27F950FF00A9F6E8A
  • Body hash689BBBEFC85DDB473BE28DD9DFE798ADB00319D382DADB948FC2A68D19BAE9FF
  • IL size293
Referenced calls
Called by

UpdateMovementBasedThreat

private System.Void UpdateMovementBasedThreat(Shared.Entity.EntityWrapper owner, System.Single dt)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • HashD0190FB9D6432F87B3E1F9D021260067F80D30B6AA3F0588D25350B004FE0FB1
  • Body hash3C10C35D8449D702085708FAD56A18B437AC08967409A41F287B666420E4861D
  • IL size208
Referenced calls
  • System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()
  • Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()
  • System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Deconstruct(!0&, !1&)
  • Shared.Entity.EntityWrapper::get_Position2()
  • Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
  • CandideCreator.Shared.Helpers.VectorExtension::NormalizeSafe(Microsoft.Xna.Framework.Vector2&)
  • Shared.Entity.EntityWrapper::get_Velocity()
  • CandideCreator.Shared.Helpers.VectorExtension::ToVector2(Microsoft.Xna.Framework.Vector3)
  • Microsoft.Xna.Framework.Vector2::Dot(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
  • Microsoft.Xna.Framework.Vector2::Length()
  • System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>::.ctor(!0, !1)
  • System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::set_Item(!0, !1)
  • Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()
  • System.IDisposable::Dispose()

UpdateThreatDecay

private System.Void UpdateThreatDecay(System.Single dt)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • HashFB2F04DC3D2F3632C3402E9C8D0CA6F75579F406AD6769E817646AE7B35B1517
  • Body hash5F68071886343E6A5D644F1437AB892343A017F0D54809EB0AEBBC1AD18AF526
  • IL size206
Referenced calls
  • System.MathF::Pow(System.Single, System.Single)
  • System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()
  • Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()
  • System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Deconstruct(!0&, !1&)
  • System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>::.ctor(!0, !1)
  • System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::set_Item(!0, !1)
  • Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()
  • System.IDisposable::Dispose()
Called by

UpdateTrigger

private System.Void UpdateTrigger(Shared.Entity.EntityWrapper entity, System.Single dt)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash8135EEDB7BD9E22D129EEB504E4990A4B1534E88E75A9563F2719331E32C6817
  • Body hashF0974BB5AA3764AB24FB5C460C39DA8547C873277371CB7AE9B424EFC263075D
  • IL size458
Referenced calls
Called by