跳到主要内容
版本:Next

Interface IAreaSeeder

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

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

public interface IAreaSeeder

Remarks​

Game thread, inside the area's creation, before its created event. The server has not registered the area yet, so create into it through its scope, IEntities.Create<T>(Scope.Of(area)). A mod has at most one area seeder.

Methods​

Seed(Area)​

void Seed(Area area)

Parameters​

area Area