mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 14:21:52 +09:00
disposable UI; loading screen mockup (i heard like loading screen -- sonic 06)
This commit is contained in:
@@ -15,6 +15,8 @@ class CircularArray<T>(val size: Int) {
|
||||
var tail: Int = 0
|
||||
var head: Int = 0
|
||||
|
||||
val lastIndex = size - 1
|
||||
|
||||
val elemCount: Int
|
||||
get() = if (tail >= head) tail - head else size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user