public class SyncTaglet
extends Object
implements Taglet
This taglet indicates that a command is automatically synchronized with the other players, instead of only executed locally. If this is not the case and the command is only executed locally, the game will go Out of Sync.
For example the trigger command
invokes a GP, but only locally.
If this trigger command is only executed by 1 player and not by the others,
an OoS error will occur.
Triggers.trTechInvokeGodPower(int, string, vector, vector)
On the other hand, the console command
- even though only issued locally - will automatically be sent to
the other players in the game. They will also execute the command in their game
and synchronized is guaranteed.
Unit.trainInSelected(string, int)
Constructor and Description |
---|
SyncTaglet() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
inConstructor() |
boolean |
inField() |
boolean |
inMethod() |
boolean |
inOverview() |
boolean |
inPackage() |
boolean |
inType() |
boolean |
isInlineTag() |
static void |
register(Map<String,Taglet> tagletMap) |
String |
toString(Tag tag) |
String |
toString(Tag[] tags) |
public String getName()
getName
in interface Taglet
public boolean inConstructor()
inConstructor
in interface Taglet
public boolean inField()
inField
in interface Taglet
public boolean inMethod()
inMethod
in interface Taglet
public boolean inOverview()
inOverview
in interface Taglet
public boolean inPackage()
inPackage
in interface Taglet
public boolean inType()
inType
in interface Taglet
public boolean isInlineTag()
isInlineTag
in interface Taglet
public String toString(Tag tag)
toString
in interface Taglet
public String toString(Tag[] tags)
toString
in interface Taglet
public static void register(Map<String,Taglet> tagletMap)