initial commit

This commit is contained in:
2026-05-09 22:39:06 +03:00
commit 99800e9d37
60 changed files with 2276 additions and 0 deletions
@@ -0,0 +1,20 @@
package commands
import collection.CollectionManager
import kotlinx.serialization.Contextual
import kotlinx.serialization.Serializable
import models.HumanBeing
import network.Response
@Serializable
class ClearCommand(@Contextual private val manager: CollectionManager) : Command {
override val name = "clear"
override val description = "очистить коллекцию"
override val args = listOf(CommandArgType.NONE)
override val type = CommandType.SIMPLE
override fun execute(args: List<String>, humanBeing: HumanBeing?): Response {
manager.clear()
return Response(true, "Коллекция очищена.")
}
}