Skip to content

Instantly share code, notes, and snippets.

@andremw
Last active June 23, 2020 02:58
Show Gist options
  • Save andremw/867b6c3e9513733f83f326b7cf4fb2d3 to your computer and use it in GitHub Desktop.
Save andremw/867b6c3e9513733f83f326b7cf4fb2d3 to your computer and use it in GitHub Desktop.
namespace GameEngine.Common
open System
// SimpleTypes
type String35 = private String35 of string
type PersonName = PersonName of String35
type GameId = GameId of int
// CompoundTypes
type JoinGameRequest = {
PersonName: PersonName
GameId: GameId
}
type PlayerJoinedGame = {
PlayerName: PlayerName
GameId: GameId
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment