Class ModularFirearmAttachment
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.ModularFirearms
Assembly: NeoFPS.dll
Syntax
public abstract class ModularFirearmAttachment : MonoBehaviour
Properties
attachmentID
Declaration
public Guid attachmentID { get; }
Property Value
| Type | Description |
|---|---|
| System.Guid |
displayName
Declaration
public string displayName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
listName
Declaration
public string listName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
CheckRequirements(ModularFirearmAttachmentSystem)
Declaration
public abstract bool CheckRequirements(ModularFirearmAttachmentSystem attachmentSystem)
Parameters
| Type | Name | Description |
|---|---|---|
| ModularFirearmAttachmentSystem | attachmentSystem |
Returns
| Type | Description |
|---|---|
| System.Boolean |
OnConnectedToSocket(ModularFirearmAttachmentSocket)
Declaration
public virtual void OnConnectedToSocket(ModularFirearmAttachmentSocket socket)
Parameters
| Type | Name | Description |
|---|---|---|
| ModularFirearmAttachmentSocket | socket |
OnDisconnectedFromSocket(ModularFirearmAttachmentSocket)
Declaration
public virtual void OnDisconnectedFromSocket(ModularFirearmAttachmentSocket socket)
Parameters
| Type | Name | Description |
|---|---|---|
| ModularFirearmAttachmentSocket | socket |
OnValidate()
Declaration
protected void OnValidate()