Initial commit: Client Doc docs Server Tools

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ud18010
2026-07-10 10:24:29 +08:00
co-authored by Cursor
commit 7e35d8da31
3374 changed files with 680813 additions and 0 deletions
@@ -0,0 +1,37 @@
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
using XGame.MiniGame;
namespace XGame.Editor
{
public static class PcMiniGameSmokeMenu
{
[MenuItem("XWorld/PC Smoke/Create Lobby Flow Launcher")]
public static void CreateLobbyLauncher()
{
var go = GameObject.Find("PcLobbySmoke");
if (go == null) go = new GameObject("PcLobbySmoke");
var launcher = go.GetComponent<PcLobbySmokeLauncher>();
if (launcher == null) launcher = go.AddComponent<PcLobbySmokeLauncher>();
launcher.GatewayUrl = "ws://127.0.0.1:5005/ws?pid=1";
Selection.activeObject = go;
EditorGUIUtility.PingObject(go);
}
[MenuItem("XWorld/PC Smoke/Create MiniGame Smoke Launcher")]
public static void CreateLauncher()
{
var go = GameObject.Find("PcMiniGameSmoke");
if (go == null) go = new GameObject("PcMiniGameSmoke");
var launcher = go.GetComponent<PcMiniGameSmokeLauncher>();
if (launcher == null) launcher = go.AddComponent<PcMiniGameSmokeLauncher>();
launcher.GatewayUrl = "ws://127.0.0.1:5005/ws?pid=1";
launcher.GameId = "rps";
launcher.Version = 1;
Selection.activeObject = go;
EditorGUIUtility.PingObject(go);
}
}
}
#endif