Class BaseMeleeWeapon
Inheritance
BaseMeleeWeapon
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public abstract class BaseMeleeWeapon : MonoBehaviour, IMeleeWeapon, IWieldable, IMonoBehaviour, IDamageSource, ICrosshairDriver, IPoseHandler, INeoSerializableComponent
Properties
accuracy
Declaration
public float accuracy { get; protected set; }
Property Value
| Type |
Description |
| System.Single |
|
animationHandler
Declaration
public IWieldableAnimationHandler animationHandler { get; }
Property Value
animator
Declaration
protected Animator animator { get; }
Property Value
| Type |
Description |
| Animator |
|
attacking
Declaration
public bool attacking { get; protected set; }
Property Value
| Type |
Description |
| System.Boolean |
|
audioSource
Declaration
protected AudioSource audioSource { get; }
Property Value
| Type |
Description |
| AudioSource |
|
blocking
Declaration
public bool blocking { get; protected set; }
Property Value
| Type |
Description |
| System.Boolean |
|
controller
Declaration
public IController controller { get; }
Property Value
crosshair
Declaration
public FpsCrosshair crosshair { get; protected set; }
Property Value
Declaration
public Transform damageSourceTransform { get; }
Property Value
| Type |
Description |
| Transform |
|
description
Declaration
public string description { get; }
Property Value
| Type |
Description |
| System.String |
|
isBlocked
Declaration
public virtual bool isBlocked { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isSelecting
Declaration
protected bool isSelecting { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
outDamageFilter
Declaration
public DamageFilter outDamageFilter { get; set; }
Property Value
wielder
Declaration
public ICharacter wielder { get; }
Property Value
Methods
AddBlocker(Object)
Declaration
public void AddBlocker(Object o)
Parameters
| Type |
Name |
Description |
| Object |
o |
|
Awake()
Declaration
protected virtual void Awake()
Deselect()
Declaration
public Waitable Deselect()
Returns
DeselectInstant()
Declaration
public void DeselectInstant()
FixedUpdate()
Declaration
protected virtual void FixedUpdate()
GetPose(MonoBehaviour)
Declaration
public PoseInformation GetPose(MonoBehaviour owner)
Parameters
Returns
HideCrosshair()
Declaration
public void HideCrosshair()
OnAttackingChange(Boolean)
Declaration
protected virtual void OnAttackingChange(bool to)
Parameters
| Type |
Name |
Description |
| System.Boolean |
to |
|
OnBlockStateChange(Boolean)
Declaration
protected virtual void OnBlockStateChange(bool to)
Parameters
| Type |
Name |
Description |
| System.Boolean |
to |
|
OnDisable()
Declaration
protected virtual void OnDisable()
OnEnable()
Declaration
protected virtual void OnEnable()
OnIsBlockedChanged(Boolean)
Declaration
protected virtual void OnIsBlockedChanged(bool blocked)
Parameters
| Type |
Name |
Description |
| System.Boolean |
blocked |
|
OnValidate()
Declaration
protected virtual void OnValidate()
PopPose(MonoBehaviour, Single)
Declaration
public void PopPose(MonoBehaviour owner, float blendTime)
Parameters
| Type |
Name |
Description |
| MonoBehaviour |
owner |
|
| System.Single |
blendTime |
|
PrimaryPress()
Declaration
public abstract void PrimaryPress()
PrimaryRelease()
Declaration
public abstract void PrimaryRelease()
Declaration
public void PushPose(PoseInformation pose, MonoBehaviour owner, float blendTime, int priority = 0)
Parameters
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public virtual void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
RemoveBlocker(Object)
Declaration
public void RemoveBlocker(Object o)
Parameters
| Type |
Name |
Description |
| Object |
o |
|
SecondaryPress()
Declaration
public abstract void SecondaryPress()
SecondaryRelease()
Declaration
public abstract void SecondaryRelease()
Select()
Declaration
ShowCrosshair()
Declaration
public void ShowCrosshair()
Start()
Declaration
protected virtual void Start()
Update()
Declaration
protected virtual void Update()
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onAccuracyChanged
Declaration
public event UnityAction<float> onAccuracyChanged
Event Type
| Type |
Description |
| UnityAction<System.Single> |
|
onAttackingChange
Declaration
public event UnityAction<bool> onAttackingChange
Event Type
| Type |
Description |
| UnityAction<System.Boolean> |
|
onBlockedChanged
Declaration
public event UnityAction<bool> onBlockedChanged
Event Type
| Type |
Description |
| UnityAction<System.Boolean> |
|
onBlockStateChange
Declaration
public event UnityAction<bool> onBlockStateChange
Event Type
| Type |
Description |
| UnityAction<System.Boolean> |
|
onCrosshairChanged
Declaration
public event UnityAction<FpsCrosshair> onCrosshairChanged
Event Type
onWielderChanged
Declaration
public event UnityAction<ICharacter> onWielderChanged
Event Type
Implements
Extension Methods