Skip to content

Commit

Permalink
Add splashes.json to Individual Files
Browse files Browse the repository at this point in the history
  • Loading branch information
ExDrill committed Aug 2, 2024
1 parent c4e17f7 commit 828fdd1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/components/Projects/CreateProject/Files/RP/Splashes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { ICreateProjectOptions } from "../../CreateProject";
import { CreateFile } from "../CreateFile";
import { FileSystem } from "/@/components/FileSystem/FileSystem";



export class CreateSplashes extends CreateFile {
public readonly id = 'splashes'

async create(fs: FileSystem, projectOptions: ICreateProjectOptions) {
await fs.writeJSON(
`RP/splashes.json`,
{
canMerge: false,
splashes: []
},
true
)
}
}
2 changes: 2 additions & 0 deletions src/components/Projects/CreateProject/Packs/RP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { CreateFlipbookTextures } from '../Files/RP/FlipbookTextures'
import { CreateBiomesClient } from '../Files/RP/BiomesClient'
import { CreateSounds } from '../Files/RP/Sounds'
import { CreateSoundDefintions } from '../Files/RP/SoundDefinitions'
import { CreateSplashes } from '../Files/RP/Splashes'

export class CreateRP extends CreatePack {
protected readonly packPath = 'RP'
Expand All @@ -23,5 +24,6 @@ export class CreateRP extends CreatePack {
new CreateBiomesClient(),
new CreateSounds(),
new CreateSoundDefintions(),
new CreateSplashes()
]
}

1 comment on commit 828fdd1

@Miclee7
Copy link

@Miclee7 Miclee7 commented on 828fdd1 Aug 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Epic

Please sign in to comment.