Add: menu_app_list.php
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
class AppInfo {
|
||||
|
||||
constructor(name, nameKorean, howToPlay) {
|
||||
this.name = name;
|
||||
constructor(appID, appName, koreanName, howToPlay) {
|
||||
this.appID = appID;
|
||||
this.appName = appName;
|
||||
|
||||
this.nameKorean = nameKorean;
|
||||
this.koreanName = koreanName;
|
||||
this.isActivated = false;
|
||||
this.howToPlay = howToPlay;
|
||||
}
|
||||
@@ -51,26 +52,26 @@ class AppInfoManager {
|
||||
));
|
||||
}
|
||||
|
||||
setHowToPlay(name, text) {
|
||||
this.appInfoMap[name].howToPlay = text;
|
||||
setHowToPlay(appName, text) {
|
||||
this.appInfoMap[appName].howToPlay = text;
|
||||
}
|
||||
|
||||
registerAppInfo(appInfo) {
|
||||
return this.appInfoMap[appInfo.name] = appInfo;
|
||||
return this.appInfoMap[appInfo.appName] = appInfo;
|
||||
}
|
||||
|
||||
getAppNameKorean(name) {
|
||||
if(name === null)
|
||||
getAppkoreanName(appName) {
|
||||
if(appName === null)
|
||||
return "";
|
||||
|
||||
return this.appInfoMap[name].nameKorean;
|
||||
return this.appInfoMap[appName].koreanName;
|
||||
}
|
||||
|
||||
getHowToPlayText(name) {
|
||||
if(name === null)
|
||||
getHowToPlayText(appName) {
|
||||
if(appName === null)
|
||||
return "";
|
||||
|
||||
return this.appInfoMap[name].howToPlay;
|
||||
return this.appInfoMap[appName].howToPlay;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user