Module necro.game.data.migration.Migration
Functions
addComponent (oldComponentName, newComponentName) | |
apply (entityType) | |
custom (componentName, func) | |
defaultValue (componentName, fieldName, defaultValue) | |
register (version, level, migrations) | |
removeComponent (componentName) | |
renameComponent (oldComponentName, newComponentName, fieldNameMapping) | |
renameFields (componentName, fieldNameMapping) | |
splitComponent (componentName, fieldMapping, remove) | migration.splitComponent("oldComponent", {
}) |
Tables
Level |
Functions
- addComponent (oldComponentName, newComponentName)
-
Parameters:
- oldComponentName
- newComponentName
- apply (entityType)
-
Parameters:
- entityType
- custom (componentName, func)
-
Parameters:
- componentName
- func
- defaultValue (componentName, fieldName, defaultValue)
-
Parameters:
- componentName
- fieldName
- defaultValue
- register (version, level, migrations)
-
Parameters:
- version
- level
- migrations
- removeComponent (componentName)
-
Parameters:
- componentName
- renameComponent (oldComponentName, newComponentName, fieldNameMapping)
-
Parameters:
- oldComponentName
- newComponentName
- fieldNameMapping
- renameFields (componentName, fieldNameMapping)
-
Parameters:
- componentName
- fieldNameMapping
- splitComponent (componentName, fieldMapping, remove)
-
migration.splitComponent("oldComponent", {
renamedField = "newFieldName", movedField = { component = "newComponent" }, movedAndRenamedField = { component = "newComponent", field = "newField" }, deletedField = false,
})
Parameters:
- componentName
- fieldMapping
- remove