Terasology / ManualLabor

Work is hard. Here are tools a workman needs to make digging and chopping easier.
0 stars 11 forks source link

WIP : Add initial shearing system #48

Closed meetcshah19 closed 3 years ago

meetcshah19 commented 3 years ago

The current PR uses PR to add model. Use spawnPrefab sheep to spawn a sheep and give CrudeShears to get a CrudeShears item. Use the CrudeShears on the sheep to see the shearing take place.

meetcshah19 commented 3 years ago

An easy way to test the PR is to create a dummy AnimalSpawnEvent in the engine and send it with the spawnPrefab command here. Also switch the event used in the shearing system.

keturn commented 3 years ago

The WildAnimalSpawn event feels like something that shouldn't need a new custom system and event. I went looking to see if there's anything built-in that might cover this use case.

There are lifecycle events that apply to all Components. Can this use the OnAddedComponent or OnChangedComponent events? Perhaps with ReceiveEvent set to filter to only WildAnimalComponent.

These are mentioned as core events in the wiki's Events and Systems page.