EcsBuilderEnableEventExtensionsEnableEventT1, T2 Method (IEcsBuilder, String) |
Enables handling of the callback with the specified name as an event.
Namespace:
SampSharp.Entities
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public static IEcsBuilder EnableEvent<T1, T2>(
this IEcsBuilder builder,
string name
)
Parameters
- builder
- Type: SampSharp.EntitiesIEcsBuilder
The ECS builder in which to enable the callback. - name
- Type: SystemString
The name of the callback.
Type Parameters
- T1
- The type of parameter 1 of the callback.
- T2
- The type of parameter 2 of the callback.
Return Value
Type:
IEcsBuilderA reference to this instance after the operation has completed.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEcsBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also