config. EasyBox3Lib

EasyBox3Lib的配置文件

Members

(static) debug

启用调试模式
非必要建议不要开启,否则可能造成控制台刷屏

Default Value
  • false

(static) automaticLoggingOfOutputToTheLog

是否自动将输出写入日志里,建议启用

Default Value
  • true

(static) logOnlyWarningsAndErrors

日志是否只记录警告和错误

Default Value
  • false

(static) exposureToGlobal

是否暴露到全局

Default Value
  • false

(static) numberOfEntitiesRemainingToBeCreatedForSecurity

安全剩余可创建实体数量

Default Value
  • 500

(static) defaultMeshScale

默认模型缩放比例

Default Value
  • new Box3Vector3(1 / 16, 1 / 16, 1 / 16)

(static) defaultMeshOrientation

默认模型旋转角度

Default Value
  • new Box3Quaternion(0, 0, 0, 1)

(static) defaultTitleTextColor

默认对话框标题颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultTitleBackgroundColor

默认对话框标题背景颜色

Default Value
  • new Box3RGBAColor(0.968, 0.702, 0.392, 1)

(static) defaultContentTextColor

默认对话框内容颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultContentBackgroundColor

默认对话框内容背景颜色

Default Value
  • new Box3RGBAColor(1, 1, 1, 1)

(static) defaultHasArrow

默认文本对话框中是否有箭头

Default Value
  • 'auto'

(static) defaultDialogOtherOptions

默认对话框其他配置选项

Default Value
  • {}

(static) enableSQLCache

启用SQL缓存,以加快读取速度
警告:如果直接使用db.sql或者EasyBox3Lib.storage.executeSQLCode方法来写入数据,可能会出现问题(读取时使用缓存会失效,即不起作用)
请确保使用了DataStorage.setDataStorage.updateDataStorage.remove方法来写入数据

Default Value
  • true

(static) inArena

是否在Pro地图中

(static) getCodeExecutionLocationOnOutput

输出时输出代码的执行位置

Default Value
  • true

(static) getFunctionNameBlackList

获取代码执行函数时,要忽略的函数名称

Default Value
  • ['eval', 'getTheCodeExecutionLocation', 'output', 'executeSQLCode', 'tryExecuteSQL', 'throwError']

(static) onTickCycleLength

onTick事件的每个周期的长度(单位:tick)

Default Value
  • 16

(static) planningOnTickFrequency

多少个周期规划一次onTick,值越小,频率越快

Default Value
  • 4

(static) disableEventOptimization

禁用事件优化
如果为true,则监听器可以在同一时间内被运行多次

Default Value
  • false

(static) maximumDatabaseRetries

数据库最大重试次数
如果超过最大重试次数,将报错,否则出错将会输出警告

Default Value
  • 5

(static) enableOnPlayerJoin

是否启用onPlayerJoin事件
如果为true,则会调用world.onPlayerJoin

Default Value
  • true

(static) enableAutoTranslation

是否启用自动翻译
如果为true,那么output和throwError的报错内容将会自动翻译成中文(日志仍为原文)

Default Value
  • false

(static) storageQueueCooldown

Storage队列冷却时间
在完成一次写入后,要等多久才会进行下一次写入,单位为ms

Default Value
  • 0

(static) enableStorageListCache

DataStorage.list方法上启用缓存
测试中,可能存在不稳定性,因为这会使用EasyBox3Lib自己写的StorageQueryList

(static) debug

启用调试模式
非必要建议不要开启,否则可能造成控制台刷屏

Default Value
  • false

(static) automaticLoggingOfOutputToTheLog

是否自动将输出写入日志里,建议启用

Default Value
  • true

(static) logOnlyWarningsAndErrors

日志是否只记录警告和错误

Default Value
  • false

(static) exposureToGlobal

是否暴露到全局

Default Value
  • false

(static) numberOfEntitiesRemainingToBeCreatedForSecurity

安全剩余可创建实体数量

Default Value
  • 500

(static) defaultMeshScale

默认模型缩放比例

Default Value
  • new Box3Vector3(1 / 16, 1 / 16, 1 / 16)

(static) defaultMeshOrientation

默认模型旋转角度

Default Value
  • new Box3Quaternion(0, 0, 0, 1)

(static) defaultTitleTextColor

默认对话框标题颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultTitleBackgroundColor

默认对话框标题背景颜色

Default Value
  • new Box3RGBAColor(0.968, 0.702, 0.392, 1)

(static) defaultContentTextColor

默认对话框内容颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultContentBackgroundColor

默认对话框内容背景颜色

Default Value
  • new Box3RGBAColor(1, 1, 1, 1)

(static) defaultHasArrow

默认文本对话框中是否有箭头

Default Value
  • 'auto'

(static) defaultDialogOtherOptions

默认对话框其他配置选项

Default Value
  • {}

(static) enableSQLCache

启用SQL缓存,以加快读取速度
警告:如果直接使用db.sql或者EasyBox3Lib.storage.executeSQLCode方法来写入数据,可能会出现问题(读取时使用缓存会失效,即不起作用)
请确保使用了DataStorage.setDataStorage.updateDataStorage.remove方法来写入数据

Default Value
  • true

(static) inArena

是否在Pro地图中

(static) getCodeExecutionLocationOnOutput

输出时输出代码的执行位置

Default Value
  • true

(static) getFunctionNameBlackList

获取代码执行函数时,要忽略的函数名称

Default Value
  • ['eval', 'getTheCodeExecutionLocation', 'output', 'executeSQLCode', 'tryExecuteSQL', 'throwError']

(static) onTickCycleLength

onTick事件的每个周期的长度(单位:tick)

Default Value
  • 16

(static) planningOnTickFrequency

多少个周期规划一次onTick,值越小,频率越快

Default Value
  • 4

(static) disableEventOptimization

禁用事件优化
如果为true,则监听器可以在同一时间内被运行多次

Default Value
  • false

(static) maximumDatabaseRetries

数据库最大重试次数
如果超过最大重试次数,将报错,否则出错将会输出警告

Default Value
  • 5

(static) enableOnPlayerJoin

是否启用onPlayerJoin事件
如果为true,则会调用world.onPlayerJoin

Default Value
  • true

(static) enableAutoTranslation

是否启用自动翻译
如果为true,那么output和throwError的报错内容将会自动翻译成中文(日志仍为原文)

Default Value
  • false

(static) storageQueueCooldown

Storage队列冷却时间
在完成一次写入后,要等多久才会进行下一次写入,单位为ms

Default Value
  • 0

(static) enableStorageListCache

DataStorage.list方法上启用缓存
测试中,可能存在不稳定性,因为这会使用EasyBox3Lib自己写的StorageQueryList

config. EasyBox3Lib

EasyBox3Lib的配置文件

Members

(static) debug

启用调试模式
非必要建议不要开启,否则可能造成控制台刷屏

Default Value
  • false

(static) automaticLoggingOfOutputToTheLog

是否自动将输出写入日志里,建议启用

Default Value
  • true

(static) logOnlyWarningsAndErrors

日志是否只记录警告和错误

Default Value
  • false

(static) exposureToGlobal

是否暴露到全局

Default Value
  • false

(static) numberOfEntitiesRemainingToBeCreatedForSecurity

安全剩余可创建实体数量

Default Value
  • 500

(static) defaultMeshScale

默认模型缩放比例

Default Value
  • new Box3Vector3(1 / 16, 1 / 16, 1 / 16)

(static) defaultMeshOrientation

默认模型旋转角度

Default Value
  • new Box3Quaternion(0, 0, 0, 1)

(static) defaultTitleTextColor

默认对话框标题颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultTitleBackgroundColor

默认对话框标题背景颜色

Default Value
  • new Box3RGBAColor(0.968, 0.702, 0.392, 1)

(static) defaultContentTextColor

默认对话框内容颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultContentBackgroundColor

默认对话框内容背景颜色

Default Value
  • new Box3RGBAColor(1, 1, 1, 1)

(static) defaultHasArrow

默认文本对话框中是否有箭头

Default Value
  • 'auto'

(static) defaultDialogOtherOptions

默认对话框其他配置选项

Default Value
  • {}

(static) enableSQLCache

启用SQL缓存,以加快读取速度
警告:如果直接使用db.sql或者EasyBox3Lib.storage.executeSQLCode方法来写入数据,可能会出现问题(读取时使用缓存会失效,即不起作用)
请确保使用了DataStorage.setDataStorage.updateDataStorage.remove方法来写入数据

Default Value
  • true

(static) inArena

是否在Pro地图中

(static) getCodeExecutionLocationOnOutput

输出时输出代码的执行位置

Default Value
  • true

(static) getFunctionNameBlackList

获取代码执行函数时,要忽略的函数名称

Default Value
  • ['eval', 'getTheCodeExecutionLocation', 'output', 'executeSQLCode', 'tryExecuteSQL', 'throwError']

(static) onTickCycleLength

onTick事件的每个周期的长度(单位:tick)

Default Value
  • 16

(static) planningOnTickFrequency

多少个周期规划一次onTick,值越小,频率越快

Default Value
  • 4

(static) disableEventOptimization

禁用事件优化
如果为true,则监听器可以在同一时间内被运行多次

Default Value
  • false

(static) maximumDatabaseRetries

数据库最大重试次数
如果超过最大重试次数,将报错,否则出错将会输出警告

Default Value
  • 5

(static) enableOnPlayerJoin

是否启用onPlayerJoin事件
如果为true,则会调用world.onPlayerJoin

Default Value
  • true

(static) enableAutoTranslation

是否启用自动翻译
如果为true,那么output和throwError的报错内容将会自动翻译成中文(日志仍为原文)

Default Value
  • false

(static) storageQueueCooldown

Storage队列冷却时间
在完成一次写入后,要等多久才会进行下一次写入,单位为ms

Default Value
  • 0

(static) enableStorageListCache

DataStorage.list方法上启用缓存
测试中,可能存在不稳定性,因为这会使用EasyBox3Lib自己写的StorageQueryList

(static) debug

启用调试模式
非必要建议不要开启,否则可能造成控制台刷屏

Default Value
  • false

(static) automaticLoggingOfOutputToTheLog

是否自动将输出写入日志里,建议启用

Default Value
  • true

(static) logOnlyWarningsAndErrors

日志是否只记录警告和错误

Default Value
  • false

(static) exposureToGlobal

是否暴露到全局

Default Value
  • false

(static) numberOfEntitiesRemainingToBeCreatedForSecurity

安全剩余可创建实体数量

Default Value
  • 500

(static) defaultMeshScale

默认模型缩放比例

Default Value
  • new Box3Vector3(1 / 16, 1 / 16, 1 / 16)

(static) defaultMeshOrientation

默认模型旋转角度

Default Value
  • new Box3Quaternion(0, 0, 0, 1)

(static) defaultTitleTextColor

默认对话框标题颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultTitleBackgroundColor

默认对话框标题背景颜色

Default Value
  • new Box3RGBAColor(0.968, 0.702, 0.392, 1)

(static) defaultContentTextColor

默认对话框内容颜色

Default Value
  • new Box3RGBAColor(0, 0, 0, 1)

(static) defaultContentBackgroundColor

默认对话框内容背景颜色

Default Value
  • new Box3RGBAColor(1, 1, 1, 1)

(static) defaultHasArrow

默认文本对话框中是否有箭头

Default Value
  • 'auto'

(static) defaultDialogOtherOptions

默认对话框其他配置选项

Default Value
  • {}

(static) enableSQLCache

启用SQL缓存,以加快读取速度
警告:如果直接使用db.sql或者EasyBox3Lib.storage.executeSQLCode方法来写入数据,可能会出现问题(读取时使用缓存会失效,即不起作用)
请确保使用了DataStorage.setDataStorage.updateDataStorage.remove方法来写入数据

Default Value
  • true

(static) inArena

是否在Pro地图中

(static) getCodeExecutionLocationOnOutput

输出时输出代码的执行位置

Default Value
  • true

(static) getFunctionNameBlackList

获取代码执行函数时,要忽略的函数名称

Default Value
  • ['eval', 'getTheCodeExecutionLocation', 'output', 'executeSQLCode', 'tryExecuteSQL', 'throwError']

(static) onTickCycleLength

onTick事件的每个周期的长度(单位:tick)

Default Value
  • 16

(static) planningOnTickFrequency

多少个周期规划一次onTick,值越小,频率越快

Default Value
  • 4

(static) disableEventOptimization

禁用事件优化
如果为true,则监听器可以在同一时间内被运行多次

Default Value
  • false

(static) maximumDatabaseRetries

数据库最大重试次数
如果超过最大重试次数,将报错,否则出错将会输出警告

Default Value
  • 5

(static) enableOnPlayerJoin

是否启用onPlayerJoin事件
如果为true,则会调用world.onPlayerJoin

Default Value
  • true

(static) enableAutoTranslation

是否启用自动翻译
如果为true,那么output和throwError的报错内容将会自动翻译成中文(日志仍为原文)

Default Value
  • false

(static) storageQueueCooldown

Storage队列冷却时间
在完成一次写入后,要等多久才会进行下一次写入,单位为ms

Default Value
  • 0

(static) enableStorageListCache

DataStorage.list方法上启用缓存
测试中,可能存在不稳定性,因为这会使用EasyBox3Lib自己写的StorageQueryList