WoopWoop-Docs
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
WoopWoop.RequireComponent Class Reference

Specifies that a component requires certain other components to be attached to the same entity. More...

Inheritance diagram for WoopWoop.RequireComponent:

Public Member Functions

 RequireComponent (MessageType type, params Type[] componentTypes)
 Initializes a new instance of the RequireComponent class with the specified message type and component types.
 
 RequireComponent (params Type[] componentTypes)
 Initializes a new instance of the RequireComponent class with the specified component types and defaults to an error message type.
 

Properties

Type[] RequiredComponents [get, private set]
 Gets the array of required component types.
 
MessageType MessageType [get, private set]
 Gets the message type associated with the requirement.
 

Detailed Description

Specifies that a component requires certain other components to be attached to the same entity.

Constructor & Destructor Documentation

◆ RequireComponent() [1/2]

WoopWoop.RequireComponent.RequireComponent ( MessageType type,
params Type[] componentTypes )

Initializes a new instance of the RequireComponent class with the specified message type and component types.

Parameters
typeThe message type associated with the requirement.
componentTypesThe array of component types required by the attributed component.

◆ RequireComponent() [2/2]

WoopWoop.RequireComponent.RequireComponent ( params Type[] componentTypes)

Initializes a new instance of the RequireComponent class with the specified component types and defaults to an error message type.

Parameters
componentTypesThe array of component types required by the attributed component.

Property Documentation

◆ MessageType

MessageType WoopWoop.RequireComponent.MessageType
getprivate set

Gets the message type associated with the requirement.

◆ RequiredComponents

Type [] WoopWoop.RequireComponent.RequiredComponents
getprivate set

Gets the array of required component types.


The documentation for this class was generated from the following file: