feat(aklive2d): many changes

- generalized env_generator
- fixed content_processor
- updated config to add fields
- removed redundant fields in config
This commit is contained in:
Haoyu Xu
2023-02-25 21:36:54 -05:00
parent e98bf8d7ea
commit 7e2a2a1d40
35 changed files with 220 additions and 141 deletions

View File

@@ -1,6 +1,3 @@
import path from 'path'
import { readSync } from "./file.js"
export default class Matcher {
#start
#end
@@ -57,9 +54,9 @@ class Evalable {
#step(location, varName) {
let content = this.#config
if (location === 'assets') content = this.#assets
varName.split("->").forEach((item) => {
try {
if (location === 'assets') content = this.#assets
content = content[item]
} catch (e) {
throw new Error(`Cannot step ${varName}.`)