Spawner rewrite

Issue #202 new
Mads Boddum created an issue

Spawner currently only works with static spawns and is coupled pretty tightly to StaticSpawnInfo. The problem is that StaticSpawnInfo is only creatable from a row in a SDB, which obviously won’t work well when we also need to create spawners at runtime.

Requirements

  1. Spawner becomes an interface with all the methods that are currently exposed
  2. StaticSpawner implements new interface Spawner and contains the logic that the old Spawner class held
  3. com.projectswg.holocore.services.support.npc.spawn.SpawnerService#spawn should use StaticSpawner
  4. Important that NPCCreator works with the Spawner interface and not StaticSpawner!

Comments (2)

  1. Log in to comment