跳到主要内容
版本:Next

Interface ICellSeeder

Namespace: ReadyM.SDK.Server.Seeding
Assembly: ReadyM.SDK.Server.dll

Fills a new cell. Declare it on a [Service]; the server calls it once, when the cell is created rather than loaded from the save.

public interface ICellSeeder

Remarks​

Game thread, inside the cell's creation, before its created event. The server has not registered the cell yet, so create into it through its scope, IEntities.Create<T>(Scope.Of(cell)). A mod has at most one cell seeder. No player is in the cell yet: what is created is the server's until the first player enters.

Methods​

Seed(Cell)​

void Seed(Cell cell)

Parameters​

cell Cell