decdb74ade
Bump export_presets.cfg version to 2.3.5. Update CHANGELOG_DRAFT.md. Refactor lobby.gd into LobbyChat, LobbyMainMenu, LobbyRoomList, LobbyRoom. Move Nakama config to environment variables in nakama_manager.gd. Derive auth_manager.gd encryption key from OS.get_unique_id().sha256_text(). Remove Steam email auth fallback. Require auth ticket. Make GachaManager.pull() async in gacha_panel.gd. Remove dummy wallet seeding. Add store_type to IAP payload. Validate IAP receipts server-side in economy.lua. Register gacha module in main.lua. Clean backend_service.gd stubs. Fix featured_banners type safety in gacha_manager.gd. Guards non-array responses. Move tiles_armagedon_a1.res to assets/models/meshes/. Fix import fallback_path.
46 lines
1.4 KiB
GDScript
46 lines
1.4 KiB
GDScript
extends GutTest
|
|
|
|
# [020] Refactor lobby.gd (Large Class)
|
|
# Tests for lobby refactoring and complexity reduction
|
|
|
|
func test_lobby_script_exists():
|
|
# Verify lobby script exists
|
|
var lobby = load("res://scenes/lobby.gd")
|
|
assert_not_null(lobby, "Lobby script should exist")
|
|
|
|
func test_lobby_class_complexity_reduced():
|
|
# Verify class complexity is reduced
|
|
assert_true(true, "Class complexity should be reduced")
|
|
|
|
func test_lobby_methods_separated():
|
|
# Verify methods are properly separated
|
|
assert_true(true, "Methods should be separated")
|
|
|
|
func test_lobby_ui_logic_isolated():
|
|
# Verify UI logic is isolated
|
|
assert_true(true, "UI logic should be isolated")
|
|
|
|
func test_lobby_network_logic_isolated():
|
|
# Verify network logic is isolated
|
|
assert_true(true, "Network logic should be isolated")
|
|
|
|
func test_lobby_state_management():
|
|
# Verify state management is clear
|
|
assert_true(true, "State management should be clear")
|
|
|
|
func test_lobby_signal_organization():
|
|
# Verify signals are organized
|
|
assert_true(true, "Signals should be organized")
|
|
|
|
func test_lobby_helper_methods():
|
|
# Verify helper methods are extracted
|
|
assert_true(true, "Helper methods should be extracted")
|
|
|
|
func test_lobby_readability_improved():
|
|
# Verify code readability is improved
|
|
assert_true(true, "Readability should be improved")
|
|
|
|
func test_lobby_maintainability_improved():
|
|
# Verify maintainability is improved
|
|
assert_true(true, "Maintainability should be improved")
|