Class MeleeWeapon
Implements
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()
Namespace: NeoFPS
Assembly: NeoFPS.dll
Syntax
public class MeleeWeapon : BaseMeleeWeapon, IMeleeWeapon, IWieldable, IMonoBehaviour, IDamageSource, ICrosshairDriver, IPoseHandler, INeoSerializableComponent
Properties
isBlocked
Declaration
public override bool isBlocked { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Methods
Awake()
Declaration
protected override void Awake()
Overrides
GetModifiedDamage(Single)
Declaration
protected virtual float GetModifiedDamage(float unmodified)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | unmodified |
Returns
| Type | Description |
|---|---|
| System.Single |
OnBlockStateChange(Boolean)
Declaration
protected override void OnBlockStateChange(bool to)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | to |
Overrides
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnMeleeHit(RaycastHit, Vector3)
Declaration
protected virtual void OnMeleeHit(RaycastHit hit, Vector3 attackDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| RaycastHit | hit | |
| Vector3 | attackDirection |
OnValidate()
Declaration
protected override void OnValidate()
Overrides
PrimaryPress()
Declaration
public override void PrimaryPress()
Overrides
PrimaryRelease()
Declaration
public override void PrimaryRelease()
Overrides
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public override void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
| Type | Name | Description |
|---|---|---|
| INeoDeserializer | reader | |
| NeoSerializedGameObject | nsgo |
Overrides
SecondaryPress()
Declaration
public override void SecondaryPress()
Overrides
SecondaryRelease()
Declaration
public override void SecondaryRelease()
Overrides
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public override void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
| Type | Name | Description |
|---|---|---|
| INeoSerializer | writer | |
| NeoSerializedGameObject | nsgo | |
| SaveMode | saveMode |