copy
fun copy(targetChar: Char = this.targetChar, emptyChar: Char = this.emptyChar, gameStorageType: GameStorageType = this.gameStorageType, savesPath: String = this.savesPath, dbName: String = this.dbName, dbURI: String = this.dbURI, dbPort: Int = this.dbPort, dbUser: String = this.dbUser, dbPassword: String = this.dbPassword): CoreConfig
Creates a copy of this CoreConfig with optionally modified values.
Return
A new CoreConfig with the specified values.
Parameters
targetChar
The character representing targets on the board.
emptyChar
The character representing empty spaces on the board.
gameStorageType
The storage type for game persistence.
savesPath
The directory path for game saves.
dbName
The MongoDB database name.
dbURI
The MongoDB connection URI.
dbPort
The MongoDB connection port.
dbUser
The MongoDB username for authentication.
dbPassword
The MongoDB password for authentication.