...

Package conversion

import "go.formulabun.club/srb2kart/conversion"
Overview
Index

Overview ▾

Constants

const Tic = time.Second / 35

Variables

var MapIdIncorrectFormat = errors.New("Map id is incorrectly formatted")
var MapNumberOverflowError = errors.New("Map number can't be bigger than 1035")

func FramesToTime

func FramesToTime(frames uint) time.Duration

func MapIdToNumber

func MapIdToNumber(id string) (uint, error)

see http://wiki.srb2.org/wiki/Extended_map_number

func NumberToMapId

func NumberToMapId(n uint) (string, error)

func TimeToFrames

func TimeToFrames(time time.Duration) uint