GenGame.Game.Game (gen_game v0.1.1)

A game struct

Fields

  • :players - list of player
  • :public_state - public state that can be changed by client via relay method
  • :private_state - private state that can only be changed by authoritative server method, client can't read any of this state
  • :read_only_state - read only state that can be read by anyone including client

Summary

Types

@type t() :: %GenGame.Game.Game{
  created_at: term(),
  players: term(),
  private_state: term(),
  public_state: term(),
  read_only_state: term(),
  status: term()
}