You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
576 B
24 lines
576 B
import { FrameJson } from "../const/GameInterface";
|
|
|
|
export default class FrameJsonCfg{
|
|
private static _Json:FrameJson;
|
|
static get Json():FrameJson{
|
|
return this._Json;
|
|
}
|
|
|
|
static setJson(json){
|
|
this._Json = json;
|
|
}
|
|
|
|
static getScaleList(bundle:string,Atlas:string,Name:string){
|
|
if(this._Json[bundle]){
|
|
if(this._Json[bundle][Atlas]){
|
|
if(this._Json[bundle][Atlas][Name]){
|
|
|
|
return this._Json[bundle][Atlas][Name]
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|