ReadyM.SDK.Attributes
Classes
Declares a struct as an archetype.
Declares a struct as an archetype mixin.
Marks the member naming the area a networked event is in, an AreaId or an Area. A
Area event goes to it rather than to the subject's area, and a
AreaMaster event is checked against its master.
Marks the member naming the cell an event is in, a FullCellId or a Cell. A
Cell event goes to it rather than to the subject's cell, and a
CellMaster event is checked against its master.
Generates a Send(...) and an On(...) handler on the client.
Generates a Send(...) on the client and an On(...) handler on the server.
Runs this method on an entity right after it is created.
Runs this method on an entity just before it is deleted.
Declares a method as a network event handler. The project it is compiled into says which side runs it - game or server.
Adds this mixin to every entity created as the named archetype.
Builds this archetype on another one, taking all of its fields. Including an archetype is inheritance, so there is one at most; combine data with IncludeAttribute and mixins instead.
Include a mixin into this archetype. Only a mixin: to build on another archetype, use IncludeArchetypeAttribute.
Indexes the shape by this property, so an entity can be found by its value. One property per shape may carry it, and writing it keeps the index current.
Declares a class the SDK fills from a JSON file in the mod's own folder and registers as injectable.
Indicates the entry point of a mod.
The annotated class may declare a private void Init() method, which will be called when the mod is loaded.
Declares a struct as a network event: a message sent to the server or other players, which any mod may validate, change, cancel, or observe.
Lets a client predict this value locally while it waits for the server confirmation of a networked event. The getter reads the guess until it is confirmed by the server or rolled back.
Marks the class as containing RPC contracts.
Each must be a public static partial void method with serializable parameters.
Each must be annotated with one of the direction attributes:
- ClientToServerAttribute
- ServerToClientAttribute
- ClientToClientsAttribute
Binds a class to the [RpcContracts] set it implements.
Generates a Send(...) on the server and an On(...) handler on the client.
Declares a service class.
Marks the member holding the entity a network event is about. SubjectOwner checks it, and Area and Cell take their audience from it when the event names no area or cell of its own.
Puts a tag on every entity created as this archetype.
Marks the member naming the one player a Single event goes to.
Specifies when a service's update runs relative to the others.
Enums
How a replicated shape's changes reach the other side.
Who receives a networked event.
Declares who can raise a network event. The server may always raise, so this applies only to clients.
Indicates how a ClientToClientsAttribute message is relayed to other players in the game.
Whether a shape's values are sent to the other players, and if so, which way they travel between the game and the ECS and who may write them.
When a networked event handler runs. Stages run in this order and stopping one skips every later stage; Only one of Observe and Rejected runs, based on whether the event was cancelled or not.