Interface ICharacterGenerator
Interface for a script that generates non-player characters.
Namespace: SociallyDistant.Core.Social
Assembly: SociallyDistant.Framework.dll
Syntax
public interface ICharacterGenerator : IGameContent
Methods
GenerateNpcs(IWorldManager)
Asynchronously spawn and generate NPCs.
Declaration
Task GenerateNpcs(IWorldManager world)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorldManager | world | The world in which NPCs should be spawned. |
Returns
| Type | Description |
|---|---|
| Task | An awaitable task that resolves when generation finishes. |