docs(research): TpF3 mod tooling and structure, offline wiki/script-doc copies
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
0213e22d66
39 files changed
+66135
No files matched your search
@@ -0,0 +1,123 @@
|
||||
<!-- Source: https://wiki.transportfever3.com/script-doc/content/base/difficulty_util.html (fetched 2026-10-04) -->
|
||||
|
||||
[index](../../index.html) / content / base / difficulty\_util
|
||||
|
||||
---
|
||||
|
||||
# Module content.base.difficulty\_util[🔗](#content.base.difficulty_util)
|
||||
|
||||
```
|
||||
global record DifficultyUtil calculateDifficulty: function({string : integer}): GameDifficulty
|
||||
getModParamPreset: function(GameDifficulty): {string : integer}
|
||||
getLabel: function(GameDifficulty): string
|
||||
getScale: function(string, integer): number
|
||||
getAllValues: function(string): {number}
|
||||
end
|
||||
global enum GameDifficulty "Easy"
|
||||
"Hard"
|
||||
"Medium"
|
||||
"VeryHard"
|
||||
end
|
||||
```
|
||||
|
||||
## Category: globals[🔗](#category-globals)
|
||||
|
||||
### DifficultyUtil[🔗](#$content.base.difficulty_util~DifficultyUtil)
|
||||
|
||||
```
|
||||
global record DifficultyUtil calculateDifficulty: function({string : integer}): GameDifficulty
|
||||
getModParamPreset: function(GameDifficulty): {string : integer}
|
||||
getLabel: function(GameDifficulty): string
|
||||
getScale: function(string, integer): number
|
||||
getAllValues: function(string): {number}
|
||||
end
|
||||
```
|
||||
|
||||
### DifficultyUtil.calculateDifficulty[🔗](#$content.base.difficulty_util~DifficultyUtil.calculateDifficulty)
|
||||
|
||||
```
|
||||
function DifficultyUtil.calculateDifficulty({string : integer}): GameDifficulty
|
||||
```
|
||||
|
||||
**Parameters**
|
||||
|
||||
* `{string : integer}`
|
||||
|
||||
**Returns**
|
||||
|
||||
1. `GameDifficulty`
|
||||
|
||||
### DifficultyUtil.getModParamPreset[🔗](#$content.base.difficulty_util~DifficultyUtil.getModParamPreset)
|
||||
|
||||
```
|
||||
function DifficultyUtil.getModParamPreset(GameDifficulty): {string : integer}
|
||||
```
|
||||
|
||||
**Parameters**
|
||||
|
||||
* `GameDifficulty`
|
||||
|
||||
**Returns**
|
||||
|
||||
1. `{string : integer}`
|
||||
|
||||
### DifficultyUtil.getLabel[🔗](#$content.base.difficulty_util~DifficultyUtil.getLabel)
|
||||
|
||||
```
|
||||
function DifficultyUtil.getLabel(GameDifficulty): string
|
||||
```
|
||||
|
||||
**Parameters**
|
||||
|
||||
* `GameDifficulty`
|
||||
|
||||
**Returns**
|
||||
|
||||
1. `string`
|
||||
|
||||
### DifficultyUtil.getScale[🔗](#$content.base.difficulty_util~DifficultyUtil.getScale)
|
||||
|
||||
```
|
||||
function DifficultyUtil.getScale(string, integer): number
|
||||
```
|
||||
|
||||
**Parameters**
|
||||
|
||||
* `string`
|
||||
* `integer`
|
||||
|
||||
**Returns**
|
||||
|
||||
1. `number`
|
||||
|
||||
### DifficultyUtil.getAllValues[🔗](#$content.base.difficulty_util~DifficultyUtil.getAllValues)
|
||||
|
||||
```
|
||||
function DifficultyUtil.getAllValues(string): {number}
|
||||
```
|
||||
|
||||
**Parameters**
|
||||
|
||||
* `string`
|
||||
|
||||
**Returns**
|
||||
|
||||
1. `{number}`
|
||||
|
||||
### GameDifficulty[🔗](#$content.base.difficulty_util~GameDifficulty)
|
||||
|
||||
```
|
||||
global enum GameDifficulty "Easy"
|
||||
"Hard"
|
||||
"Medium"
|
||||
"VeryHard"
|
||||
end
|
||||
```
|
||||
|
||||
### GameDifficulty."Easy"[🔗](#$content.base.difficulty_util~GameDifficulty.)
|
||||
|
||||
### GameDifficulty."Hard"[🔗](#$content.base.difficulty_util~GameDifficulty.)
|
||||
|
||||
### GameDifficulty."Medium"[🔗](#$content.base.difficulty_util~GameDifficulty.)
|
||||
|
||||
### GameDifficulty."VeryHard"[🔗](#$content.base.difficulty_util~GameDifficulty.)
|
||||
Reference in new issue
Block a user