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", {

 renamedField = "newFieldName",
 movedField = { component = "newComponent" },
 movedAndRenamedField = { component = "newComponent", field = "newField" },
 deletedField = false,

})

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

Tables

Level

Fields:

  • SILENT 0
  • DEBUG 1
  • INFO 2
  • WARNING 3
  • ERROR 4
generated by LDoc 1.4.6