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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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