mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-09 08:36:14 +00:00
Meta upgrades
This commit is contained in:
8
assets/Scripts/Services/Utils/StringUtils.ts
Normal file
8
assets/Scripts/Services/Utils/StringUtils.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function formatString(text: string, params: string[]): string {
|
||||
let textWithParams = text;
|
||||
for (let i = 0; i < params.length; i++) {
|
||||
textWithParams = textWithParams.replace(`{${i}}`, params[i]);
|
||||
}
|
||||
|
||||
return textWithParams;
|
||||
}
|
9
assets/Scripts/Services/Utils/StringUtils.ts.meta
Normal file
9
assets/Scripts/Services/Utils/StringUtils.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "ceda74cb-8b1e-4bd3-9cfb-0bbf0315fc40",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user