com.riiablo.ai.Npc is generating it's own items and requires VendorGenerator to be injected, which in turn requires ItemGenerator to be injected. This works alright for local instances, but networked clients should not have items generated client-side and should instead have the items injected over the network. Until this time, I have just added local generation, but this should be changed.
Ideally Npc should never generate their own items and this dependency should be resolved. Generation would take place in a server-side system which would generate the Npc inventories when the entities are created.
com.riiablo.ai.Npc
is generating it's own items and requiresVendorGenerator
to be injected, which in turn requiresItemGenerator
to be injected. This works alright for local instances, but networked clients should not have items generated client-side and should instead have the items injected over the network. Until this time, I have just added local generation, but this should be changed.Ideally
Npc
should never generate their own items and this dependency should be resolved. Generation would take place in a server-side system which would generate theNpc
inventories when the entities are created.