mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-20 13:29:25 +08:00
16 lines
423 B
TypeScript
16 lines
423 B
TypeScript
import resource from '../../data/resource.json';
|
|
import { Resource, getTypeByResource } from './resource';
|
|
|
|
const info = resource;
|
|
|
|
export function readyAllResource() {
|
|
info.forEach(v => {
|
|
const type = getTypeByResource(v);
|
|
if (type === 'zip') {
|
|
ancTe.zipResource.set(v, new Resource(v, 'zip'));
|
|
} else {
|
|
ancTe.resource.set(v, new Resource(v, type));
|
|
}
|
|
});
|
|
}
|