Initial import

This commit is contained in:
ldbetteridge
2026-03-31 15:59:23 +01:00
commit 58da5d1d71
136 changed files with 10922 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections.Generic;
using Unity.NetCode;
namespace EE2Clone.NetCode
{
/// <summary>
/// Custom bootstrap that prevents automatic world creation.
/// We manually create client/server worlds when the player chooses to host or connect.
/// </summary>
[UnityEngine.Scripting.Preserve]
public class GameBootstrap : ClientServerBootstrap
{
public override bool Initialize(string defaultWorldName)
{
// Create only the default (local) world on startup.
// Client and server worlds are created manually when the user
// starts hosting or joins a game.
AutoConnectPort = 0;
CreateDefaultClientServerWorlds();
return true;
}
}
}