All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.neko233.socket233.env.Socket233Env.kt Maven / Gradle / Ivy

The newest version!
package com.neko233.socket233.env

import com.neko233.socket233.core.structs.typeMap.TypeKey
import com.neko233.socket233.core.structs.typeMap.impl.TypeKeyMap


/**
 * @author solarisNeko on 2023-06-21
 */
class Socket233Env private constructor() {

    // <类型key, 类型value>
    val envMap = TypeKeyMap()

    companion object {

        @JvmStatic
        val instance by lazy {
            Socket233Env()
        }

        // 引擎名字
        @JvmStatic
        val keyForEngineName = TypeKey()


        // SessionManager 检查 session 开始延迟 second
        @JvmStatic
        val keyForSessionCheckIntervalSecond = TypeKey()

        // SessionManager 检查 session 间隔 second
        @JvmStatic
        val keyForSessionCheckInitLazySecond = TypeKey()

        // 玩家多久没有操作/心跳视为离线玩家
        @JvmStatic
        val keyForPlayerHeartBeatTimeoutMs = TypeKey()


    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy