RimWorld Mod Maker
RimWorld Mod Maker
Exports
..
common
components
components/common
components/common/art
components/common/graphic
components/common/quality
components/hediff
components/item
components/item/ability
components/item/attack
components/item/recipe
components/item/weapon
defs
defs/damage
defs/research
defs/stat
defs/terrainAffordance
defs/thing
defs/thing/building
defs/thing/category
defs/thing/weapon
defs/vanilla
index
io
utils
xml
Type Aliases
Context
Variables
$console
CONTEXT_BINDINGS
random
Functions
bindContext
toVec
References
bundleTextures
copyFile
getPath
IO_CONTEXT_BINDINGS
writeXmlFile
x
xls
XmlAttrs
XmlChild
XmlNode
Interfaces
ContextWithoutFunctions
Module
utils
Copy item path
Source
Type Aliases
§
Source
§
type
Context =
ReturnType
<
typeof
bindContext
>
Variables
§
Source
§
const
$
console:
DecoratedInstance
= ...
Source
§
const
CONTEXT
_
BINDINGS:
{
bundleTextures
:
(
ctx
:
ContextWithoutFunctions
,
sources
:
string
|
string
[]
,
)
=>
string
;
copyFile
:
(
ctx
:
ContextWithoutFunctions
,
src
:
string
,
dest
:
string
)
=>
void
;
defineBuilding
:
(
context
:
ContextWithoutFunctions
,
props
:
BuildingProps
,
components
:
Component
[]
,
)
=>
void
;
defineDamage
:
(
context
:
ContextWithoutFunctions
,
props
:
DamageProps
,
)
=>
DamageArmorCategoryDefId
;
defineDamageArmorCategory
:
(
context
:
ContextWithoutFunctions
,
props
:
DamageArmorCategoryProps
,
)
=>
DamageArmorCategoryDefId
;
defineResearchProject
:
(
context
:
ContextWithoutFunctions
,
props
:
ResearchProjectProps
,
)
=>
ResearchProjectDefId
;
defineResearchTab
:
(
context
:
ContextWithoutFunctions
,
props
:
ResearchTabProps
,
)
=>
ResearchTabDefId
;
defineStat
:
(
context
:
ContextWithoutFunctions
,
props
:
StatProps
,
)
=>
StatDefId
;
defineTerrainAffordance
:
(
context
:
ContextWithoutFunctions
,
props
:
TerrainAffordanceProps
,
)
=>
TerrainAffordanceDefId
;
defineThing
:
(
context
:
ContextWithoutFunctions
,
nodes
:
XmlNode
[]
,
components
:
Component
[]
,
)
=>
ThingDefId
;
defineWeapon
:
(
context
:
ContextWithoutFunctions
,
props
:
ThingProps
,
components
:
Component
[]
,
)
=>
ThingDefId
;
getPath
:
(
ctx
:
ContextWithoutFunctions
,
path
:
string
)
=>
string
;
registerDef
:
<
T
extends
string
>
(
ctx
:
ContextWithoutFunctions
,
def
:
XmlNode
,
)
=>
DefId
<
T
>
;
writeXmlFile
:
(
ctx
:
ContextWithoutFunctions
,
path
:
string
,
xml
:
XmlNode
,
)
=>
void
;
}
= ...
Source
§
const
random:
(
options
?:
RandomUUIDOptions
,
)
=>
`
${
string
}
-
${
string
}
-
${
string
}
-
${
string
}
-
${
string
}
`
= randomUUID
Functions
§
Source
§
bindContext
<
T
extends
ContextWithoutFunctions
,
Fns
extends
Record
<
string
,
Function
>
,
>
(
ctx
:
T
,
fns
:
Fns
,
)
:
T
&
{
[
K
in
string
|
number
|
symbol
]
:
Fns
[
K
]
extends
(
ctx
:
T
,
...
args
:
P
,
)
=>
R
?
(
...
args
:
P
)
=>
R
:
never
}
Source
§
toVec
(
arr
:
number
[]
)
:
string
References
§
Source
§
bundle
Textures
Source
§
copy
File
Source
§
get
Path
Source
§
IO
_
CONTEXT
_
BINDINGS
Source
§
write
Xml
File
Source
§
x
Source
§
xls
Source
§
Xml
Attrs
Source
§
Xml
Child
Source
§
Xml
Node
Interfaces
§
ContextWithoutFunctions