Click or drag to resize

EntityMiddleware Constructor

Initializes a new instance of the EntityMiddleware class.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public EntityMiddleware(
	EventDelegate next,
	int index,
	Guid entityType,
	bool isRequired = true
)

Parameters

next
Type: SampSharp.EntitiesEventDelegate
The next middleware handler.
index
Type: SystemInt32
The index of the parameter which contains the entity identifier.
entityType
Type: SystemGuid
The type of the EntityId.
isRequired (Optional)
Type: SystemBoolean
If set to true, the event will be canceled if no entity could be found with the entity identifier.
See Also