Class ModularFirearmAttachmentSocket
Inheritance
ModularFirearmAttachmentSocket
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 class ModularFirearmAttachmentSocket : MonoBehaviour, INeoSerializableComponent
Properties
attachmentSystem
Declaration
public ModularFirearmAttachmentSystem attachmentSystem { get; }
Property Value
currentAttachment
Declaration
public ModularFirearmAttachment currentAttachment { get; }
Property Value
currentAttachmentIndex
Declaration
public int currentAttachmentIndex { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
nullAttachmentName
Declaration
public string nullAttachmentName { get; }
Property Value
| Type |
Description |
| System.String |
|
numAttachments
Declaration
public int numAttachments { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
socketName
Declaration
public string socketName { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
ApplyStartingAttachment()
Declaration
protected virtual void ApplyStartingAttachment()
Attach(ModularFirearmAttachment, Vector3)
Declaration
public bool Attach(ModularFirearmAttachment attachmentPrefab, Vector3 offset)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Attach(Guid)
Declaration
public bool Attach(Guid guid)
Parameters
| Type |
Name |
Description |
| System.Guid |
guid |
|
Returns
| Type |
Description |
| System.Boolean |
|
Attach(Int32)
Declaration
public bool Attach(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.Boolean |
|
Awake()
Declaration
CanAttach(ModularFirearmAttachment)
Declaration
public bool CanAttach(ModularFirearmAttachment attachmentPrefab)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
GetAttachmentAtIndex(Int32)
Declaration
public ModularFirearmAttachment GetAttachmentAtIndex(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
GetFilteredAttachments(List<ModularFirearmAttachment>)
Declaration
public void GetFilteredAttachments(List<ModularFirearmAttachment> output)
Parameters
InstantiateAttachment(ModularFirearmAttachment, Vector3)
Declaration
protected virtual ModularFirearmAttachment InstantiateAttachment(ModularFirearmAttachment attachmentPrefab, Vector3 offset)
Parameters
Returns
OnAttachmentChanged(ModularFirearmAttachment, Boolean)
Declaration
protected virtual void OnAttachmentChanged(ModularFirearmAttachment attachment, bool wasNull)
Parameters
OnDestroy()
Declaration
protected void OnDestroy()
OnSocketConnected()
Declaration
public virtual void OnSocketConnected()
OnSocketDisconnected()
Declaration
public virtual void OnSocketDisconnected()
PreAttachmentChange(ModularFirearmAttachment, Boolean)
Declaration
protected virtual void PreAttachmentChange(ModularFirearmAttachment from, bool toNull)
Parameters
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
RemoveAttachment()
Declaration
public void RemoveAttachment()
Start()
Declaration
TransferAttachmentTo(ModularFirearmAttachmentSocket)
Declaration
public void TransferAttachmentTo(ModularFirearmAttachmentSocket other)
Parameters
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onAttachmentChanged
Declaration
public event UnityAction<ModularFirearmAttachment> onAttachmentChanged
Event Type
Implements