Refactor body component to use slots instead of an army of dictionaries (#3749)

* Refactor body component to use slots instead of an army of dictionaries

* Update vox

* Replace static method call with extension

* Add setpart method, replace dispose with shutdown

* Fix tests, fix not listening to slot events when setting a part
This commit is contained in:
DrSmugleaf
2021-04-05 14:54:51 +02:00
committed by GitHub
parent 5387f87608
commit 677706b117
30 changed files with 602 additions and 466 deletions

View File

@@ -163,7 +163,6 @@
- type: Body
template: HumanoidTemplate
preset: HumanPreset
centerSlot: torso
- type: Damageable
damageContainer: biologicalDamageContainer
- type: Metabolism
@@ -336,7 +335,6 @@
- type: Body
template: HumanoidTemplate
preset: HumanPreset
centerSlot: torso
- type: Damageable
damageContainer: biologicalDamageContainer
- type: MobState

View File

@@ -141,7 +141,6 @@
- type: Body
template: HumanoidTemplate
preset: SlimePreset
centerSlot: torso
- type: Damageable
damageContainer: biologicalDamageContainer
- type: Metabolism

View File

@@ -82,7 +82,6 @@
- type: Body
template: HumanoidTemplate
preset: VoxPreset
centerSlot: torso
- type: Metabolism
needsGases:
Nitrogen: 0.00060763888

View File

@@ -0,0 +1,10 @@
- type: entityList
id: CowTools
entities:
- Haycutters
- Moodriver
- Wronch
- Cowbar
- Mooltitool
- Cowelder
- Milkalyzer