def generate_all(rm: ResourceManager): # generic lang first, dynamic lang included in assets.py rm.lang(STANDARD_LANG) # assets/data assets.generate(rm) rm.flush()
def generate_all(rm: ResourceManager): # do simple lang keys first, because it's ordered intentionally rm.lang(DEFAULT_LANG) # generic assets / data assets.generate(rm) data.generate(rm) world_gen.generate(rm) recipes.generate(rm) rm.flush()
def main(): rm = ResourceManager('notreepunching', resource_dir='../src/main/resources') rm_vanilla = ResourceManager(resource_dir='../src/main/resources') clean_generated_resources('../src/main/resources') assets.generate(rm) assets.generate_vanilla(rm_vanilla) recipes.generate(rm) recipes.generate_vanilla(rm_vanilla) rm.flush() rm_vanilla.flush()
def generate_all(rm: ResourceManager): assets.generate(rm) rm.flush()