defineSystem
Call Signature
Section titled “Call Signature”defineSystem<
Of,Name>(entry):SystemDefinition<`${Of}`,true,Both,Name>
Makes a system’s definition, checking what one definition can know:
its name, its phase, that a predicted one runs on both ends, that each
anchor is a handle or a definition of its phase. What needs the plugin,
a sibling the list does not hold, a replacement’s kind or a command the
plugin lacks, definePlugin checks, and
what needs the whole list, the composer checks as the game’s module
loads. Typed by the entry: run takes a PredictedStep for
predicted: true, an AuthoritativeStep for an unpredicted entry with
no runsOn, and an UnpredictedStep for Both or Client.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Of extends Phase |
Name extends string |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entry |
PredictedSystemEntry<Of, Name> |
Returns
Section titled “Returns”SystemDefinition<`${Of}`, true, Both, Name>
Call Signature
Section titled “Call Signature”defineSystem<
Of,Name>(entry):SystemDefinition<`${Of}`,false,Server,Name>
Makes a system’s definition, checking what one definition can know:
its name, its phase, that a predicted one runs on both ends, that each
anchor is a handle or a definition of its phase. What needs the plugin,
a sibling the list does not hold, a replacement’s kind or a command the
plugin lacks, definePlugin checks, and
what needs the whole list, the composer checks as the game’s module
loads. Typed by the entry: run takes a PredictedStep for
predicted: true, an AuthoritativeStep for an unpredicted entry with
no runsOn, and an UnpredictedStep for Both or Client.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Of extends Phase |
Name extends string |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entry |
AuthoritativeSystemEntry<Of, Name> |
Returns
Section titled “Returns”SystemDefinition<`${Of}`, false, Server, Name>
Call Signature
Section titled “Call Signature”defineSystem<
Of,Name,RunsOn>(entry):SystemDefinition<`${Of}`,false,RunsOn,Name>
Makes a system’s definition, checking what one definition can know:
its name, its phase, that a predicted one runs on both ends, that each
anchor is a handle or a definition of its phase. What needs the plugin,
a sibling the list does not hold, a replacement’s kind or a command the
plugin lacks, definePlugin checks, and
what needs the whole list, the composer checks as the game’s module
loads. Typed by the entry: run takes a PredictedStep for
predicted: true, an AuthoritativeStep for an unpredicted entry with
no runsOn, and an UnpredictedStep for Both or Client.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Of extends Phase |
Name extends string |
RunsOn extends Client | Both |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entry |
WorldSystemEntry<Of, Name, RunsOn> |
Returns
Section titled “Returns”SystemDefinition<`${Of}`, false, RunsOn, Name>