This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ggmolly/localized
Add localized handlers, and region-based data populating
- Loading branch information
Showing
19 changed files
with
507 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package consts | ||
|
||
// NOTE: All of the following consts are used in the update packet and game update | ||
// functions to re-emit a SC_10801 packet with the game's update information | ||
// and to automatically fetch the game's updates | ||
// Upon implementing a new region, the gateway and proxy must be added here | ||
// check answer/update_packet.go for more information | ||
var ( | ||
RegionGateways = map[string]string{ | ||
"EN": "blhxusgate.yo-star.com", | ||
} | ||
RegionProxies = map[string]string{ | ||
"EN": "blhxusproxy.yo-star.com", | ||
} | ||
// This might not change between regions, but it's here just in case | ||
Monday_0OclockTimestamps = map[string]uint32{ | ||
"EN": 1606114800, | ||
} | ||
|
||
// This map represents the game's url on the respective platforms | ||
GamePlatformUrl = map[string]map[string]string{ | ||
"EN": { | ||
"0": "https://play.google.com/store/apps/details?id=com.YoStarEN.AzurLane", | ||
"1": "https://itunes.apple.com/us/app/azur-lane/id1411126549", | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package misc | ||
|
||
import "os" | ||
|
||
// GetSpecifiedRegion returns the value of the environment variable AL_REGION | ||
// it is needed for the web UI to highlight the correct region since we cannot call os.Getenv | ||
// from the web template engine ¯\_(ツ)_/¯ | ||
func GetSpecifiedRegion() string { | ||
return os.Getenv("AL_REGION") | ||
} |
Oops, something went wrong.