From 050e4b9e0060d7992cdf8a53e8d5fe881248118f Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sat, 12 Nov 2022 11:22:54 +0100 Subject: [PATCH] Weird idea about seq --- lib/teeworlds_server.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/teeworlds_server.rb b/lib/teeworlds_server.rb index 083827a..ceaeaf1 100644 --- a/lib/teeworlds_server.rb +++ b/lib/teeworlds_server.rb @@ -22,6 +22,17 @@ class Client @addr = attr[:addr] @vital_sent = 0 end + + # TODO: use or remove + # not sure if its cool + # one can make vital_sent read only + # and then the seq reader increments it + # so everytime a header is created + # the chunk builder just calls + # seq = client.seq + def seq + @vital_sent + 1 + end end class TeeworldsServer