[][src]Module weasel::event

Event module.

Structs

ClientEventPrototype

An event prototype sent by a client to a server that must be first verified before being processed.

Conditional

Decorator for event triggers to add a condition on the generated event prototype.

DummyEvent

An event that does nothing.

DummyEventTrigger

Trigger to build and fire a DummyEvent event.

EventPrototype

A prototype for tentative events that are not yet verified.

EventWrapper

A wrapper to decorate verified events with additional data.

LinkedQueue

Decorator for EventQueue processor. It sets the origin of all events inserted into the queue to the EventId specified during instantiation, unless origin has been manually specified.

MultiClientSinkHandle

A structure to access client sinks.

MultiClientSinkHandleMut

A structure to access and manipulate client sinks.

Originated

Decorator for event triggers to manually set the origin of an event.

Prioritized

Decorator for EventQueue processor. It appends new events at the front of the queue, instead of pushing them at the back.

VersionedEventWrapper

Decorates an EventWrapper with the battle rules version.

Enums

EventKind

Enum to represent all different kinds of events.

EventRights

Types of access rights that might be required in order to fire an event.

Traits

ClientSink

An output sink to dump versioned and verified events to a client.

DefaultOutput

A trait to describe an output type from an event processor. The requirement of this type is to be able to return an object for an ok state.

Event

An event is the only mean to apply a change to the world.

EventProcessor

A trait for objects that can process new local events.

EventReceiver

A trait for objects that can receive verified events.

EventServer

A trait for objects that can verify and process new client events.

EventSink

Basic trait for event sinks.

EventTrigger

Trait to unify the interface of all event builders.

ServerSink

An output sink to dump tentative events to a server.

Type Definitions

Condition

Function that tells if an event prototype met its additional conditions in order to be applied.

EventId

Type for the id of events.

EventQueue

Collection to queue events prototypes, in order of insertion.

EventSinkId

Id of an event sink.