Candide.Graphics.VFX.VfxSpring
Type JSONpublic class in Candide.Graphics.VFX
Type metadata
- Assembly
Romestead - Namespace
Candide.Graphics.VFX - Base type
System.Object - Hash
55E944620EFA83737278A872E11494AA4A2799C7374A1C0A32A3F6F1B75F64B9
Relationships
Base type
System.Object
Referenced by types
Fields
| Name | Visibility | Signature |
|---|---|---|
RetractingTime# | public | public System.Single RetractingTime |
RopeSheet# | private | private CandideCreator.Shared.Graphics.SpriteSheet RopeSheet |
_hasDoneFirstUpdate# | private | private System.Boolean _hasDoneFirstUpdate |
_lastEndPosition# | private | private Microsoft.Xna.Framework.Vector2 _lastEndPosition |
_lastSourcePosition# | private | private Microsoft.Xna.Framework.Vector2 _lastSourcePosition |
_retractionPos# | private | private Microsoft.Xna.Framework.Vector2 _retractionPos |
_retractionStatus# | private | private VfxSpring.RetractionStatus _retractionStatus |
_retractionTimer# | private | private System.Single _retractionTimer |
_sourceEntity# | private | private Shared.Entity.EntityWrapper _sourceEntity |
_sourceProjectileId# | private | private System.Nullable<System.Int32> _sourceProjectileId |
_targetEntity# | private | private Shared.Entity.EntityWrapper _targetEntity |
_targetProjectileId# | private | private System.Nullable<System.Int32> _targetProjectileId |
Properties
| Name | Visibility | Signature |
|---|---|---|
Finished# | public | public System.Boolean Finished |
Methods
DetachTarget1
#
public System.Void DetachTarget1()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
2A95DCD0FFC2F94CE558B45D4E940E350CE0A06959C8A0D17D9E97A50EEA8793 - Body hash
810041E87F4DA01869643C0D3ABC9AC2F72D5126CF8A072C45ADFAD43C7471D4 - IL size20
DetachTarget2
#
public System.Void DetachTarget2()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
CAA43083483460AC6E72D71600BB51466D5E74421E437FE8F1546532D2D8E61A - Body hash
E8181950844F4B4E650788CA3B6A74773270FB6CB16A5BB5D688529C18E11889 - IL size20
Draw
#
public System.Void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
288E8CBC0CECB192BB804E9EA7DDA29E4DEA6540ABE076892979443E7877B724 - Body hash
3382C16FA98F520F1A098473EBAC9F21A1EB494CF633426FAA25378982B2C0E9 - IL size90
Referenced calls
Candide.Graphics.VFX.VfxSpring::DrawAnimatedLine(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.ArgumentOutOfRangeException::.ctor()
Called by
DrawAnimatedLine
#
private System.Void DrawAnimatedLine(Microsoft.Xna.Framework.Graphics.SpriteBatch batch, Microsoft.Xna.Framework.Vector2 start, Microsoft.Xna.Framework.Vector2 end)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
3146053D43273EACB7F7A77AA7B7EBFA0C4D1BD688865C519939128F41AB787F - Body hash
79F298296A8B10DD0409732E6D23D309EDB1521E4F60013D38E696553AAF64DA - IL size186
Referenced calls
Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Math::Atan2(System.Double, System.Double)Microsoft.Xna.Framework.Vector2::Length()Microsoft.Xna.Framework.Vector2::Normalize(Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::ToNormalDirection(Microsoft.Xna.Framework.Vector2&)Microsoft.Xna.Framework.Vector2::Dot(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Math::Abs(System.Single)Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)CandideCreator.Shared.Graphics.SpriteSheet::DrawRotation(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, System.Int32, System.Single, Microsoft.Xna.Framework.Vector2, System.Single)
Called by
GetSourcePosition
#
private Microsoft.Xna.Framework.Vector2 GetSourcePosition()
Method metadata
- Visibilityprivate
- Return type
Microsoft.Xna.Framework.Vector2 - StaticFalse
- VirtualFalse
- Hash
01335F672EC2FC1652384CCCDFADF95A9E8A64DB8A7435BCC4F4CD0743EDA137 - Body hash
92DAB446AB99FFA298BDE1275A5874C3AD00DCA38F4BC7C61755C85D23F08930 - IL size86
Referenced calls
Shared.Entity.EntityWrapper::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToScreenSpace(Microsoft.Xna.Framework.Vector3)System.Nullable<System.Int32>::get_HasValue()System.Nullable<System.Int32>::get_Value()System.ArgumentException::.ctor(System.String)
Called by
String literals
Both source entity and source projectile was null
GetTargetPosition
#
private Microsoft.Xna.Framework.Vector2 GetTargetPosition()
Method metadata
- Visibilityprivate
- Return type
Microsoft.Xna.Framework.Vector2 - StaticFalse
- VirtualFalse
- Hash
E504C27E487E8C9BB49171F3FE1FF142853389934C657B8FFDB78BA183A3D82B - Body hash
799854CF1E87F1B8E2CDB4782F384C75BF7BF894B36BC821CAC14A786EC4DB02 - IL size86
Referenced calls
Shared.Entity.EntityWrapper::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToScreenSpace(Microsoft.Xna.Framework.Vector3)System.Nullable<System.Int32>::get_HasValue()System.Nullable<System.Int32>::get_Value()System.ArgumentException::.ctor(System.String)
Called by
String literals
Both target entity and target projectile was null
SetFinished
#
public System.Void SetFinished()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
16C262F9F286630319F22643DDC9551F91191C6374182B273059462C179006D7 - Body hash
54E5070C20A7098AD5340D9279A7DBD0901F2D1F2285A957A8676B5577A6D607 - IL size13
Referenced calls
Update
#
public System.Void Update(System.Single dt)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
3D126975AB2AD8D6C6D3FC666BCD37D023218CB256B58A6A8C6A66208B9C8E4B - Body hash
EE88605C6632AB029D9758BAF05A2D27CB91AD1EE9DAE8F12436EFEE100AF366 - IL size573
Referenced calls
Candide.Graphics.VFX.VfxSpring::get_Finished()Candide.Graphics.VFX.VfxSpring::DetachTarget1()System.Nullable<System.Int32>::get_HasValue()System.Nullable<System.Int32>::get_Value()Candide.Graphics.VFX.VfxSpring::DetachTarget2()Candide.Graphics.VFX.VfxSpring::set_Finished(System.Boolean)Candide.Graphics.VFX.VfxSpring::GetSourcePosition()Candide.Graphics.VFX.VfxSpring::GetTargetPosition()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.MathHelper::Lerp(System.Single, System.Single, 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)