package facadeInit import ( mapFacade "f1-game/nodes/map/internal/facade" leagueAttr "f1-game/nodes/map/league/attr" leagueBase "f1-game/nodes/map/league/base" leagueBuild "f1-game/nodes/map/league/build" leagueMail "f1-game/nodes/map/league/mail" leagueMember "f1-game/nodes/map/league/member" leagueQuest "f1-game/nodes/map/league/quest" leagueStorage "f1-game/nodes/map/league/storage" "f1-game/nodes/map/player/achieve" "f1-game/nodes/map/player/battle" "f1-game/nodes/map/player/conscript" "f1-game/nodes/map/player/exchange" "f1-game/nodes/map/player/facility" "f1-game/nodes/map/player/hero" "f1-game/nodes/map/player/league" mainQuest "f1-game/nodes/map/player/main_quest" sandMap "f1-game/nodes/map/player/map" "f1-game/nodes/map/player/mark" "f1-game/nodes/map/player/player" "f1-game/nodes/map/player/quest" "f1-game/nodes/map/player/scout" "f1-game/nodes/map/player/season" "f1-game/nodes/map/player/shop" "f1-game/nodes/map/player/show" signIn "f1-game/nodes/map/player/sign_in" "f1-game/nodes/map/player/storage" "f1-game/nodes/map/player/team" ) func Load() { onLoad() onRegister() onLeagueRegister() } func onLoad() { mapFacade.Storage = storage.Service() } func onRegister() { mapFacade.ServiceRegister(player.Service()) mapFacade.ServiceRegister(facility.Service()) mapFacade.ServiceRegister(storage.Service()) mapFacade.ServiceRegister(mainQuest.Service()) mapFacade.ServiceRegister(quest.Service()) mapFacade.ServiceRegister(team.Service()) mapFacade.ServiceRegister(conscript.Service()) mapFacade.ServiceRegister(mark.Service()) mapFacade.ServiceRegister(shop.Service()) mapFacade.ServiceRegister(hero.Service()) mapFacade.ServiceRegister(league.Service()) mapFacade.ServiceRegister(achieve.Service()) mapFacade.ServiceRegister(exchange.Service()) mapFacade.ServiceRegister(show.Service()) mapFacade.ServiceRegister(signIn.Service()) mapFacade.ServiceRegister(season.Service()) mapFacade.ServiceRegister(scout.Service()) mapFacade.ServiceRegister(battle.Service()) mapFacade.ServiceRegister(sandMap.Service()) } func onLeagueRegister() { mapFacade.LeagueServiceRegister(leagueAttr.Service()) mapFacade.LeagueServiceRegister(leagueStorage.Service()) mapFacade.LeagueServiceRegister(leagueQuest.Service()) mapFacade.LeagueServiceRegister(leagueBuild.Service()) mapFacade.LeagueServiceRegister(leagueBase.Service()) mapFacade.LeagueServiceRegister(leagueMember.Service()) mapFacade.LeagueServiceRegister(leagueMail.Service()) }