QuakeServer.Events (quake_server v0.1.0)

Copy Markdown View Source

What the server tells the client happened: particles and printed messages, added to the server's events. Sounds are QuakeServer.Sounds.

QuakeServer.Events.print(server, :center, "Hello")

Summary

Functions

Particles at origin thrown along direction, count of them in palette colour colour.

A line of text printed for the player (:notify) or in the middle of the screen (:center).

Functions

particles(server, origin, direction, colour, count)

Particles at origin thrown along direction, count of them in palette colour colour.

print(server, where, text)

@spec print(QuakeServer.Server.t(), :notify | :center, String.t()) ::
  QuakeServer.Server.t()

A line of text printed for the player (:notify) or in the middle of the screen (:center).