コード例 #1
0
ファイル: Program.cs プロジェクト: 6yxau/GlobalSamp
 private static void InitializeGameMode()
 {
     try
     {
         GameModeBuilder builder = new GameModeBuilder();
         builder.Use <GameMode>();
         builder.UseEncoding(Path.GetFullPath("../../../../../../env/codepages/cp1251.txt"));
         builder.Run();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
コード例 #2
0
 /// <summary>
 /// Enables the EntityComponentSystem with the specified <typeparamref name="TStartup" /> type as the startup
 /// configuration.
 /// </summary>
 /// <typeparam name="TStartup">The type of the startup configuration.</typeparam>
 /// <param name="gameModeBuilder">The game mode builder.</param>
 /// <returns>The game mode builder.</returns>
 public static GameModeBuilder UseEcs <TStartup>(this GameModeBuilder gameModeBuilder)
     where TStartup : class, IStartup, new()
 {
     return(gameModeBuilder.Use(new EcsManager(new TStartup())));
 }