Click or drag to resize

GameModeBuilderExtensionsUseEcsTStartup Method

Enables the EntityComponentSystem with the specified TStartup type as the startup configuration.

Namespace:  SampSharp.Entities
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public static GameModeBuilder UseEcs<TStartup>(
	this GameModeBuilder gameModeBuilder
)
where TStartup : class, new(), IStartup

Parameters

gameModeBuilder
Type: SampSharp.CoreGameModeBuilder
The game mode builder.

Type Parameters

TStartup
The type of the startup configuration.

Return Value

Type: GameModeBuilder
The game mode builder.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GameModeBuilder. 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