Fantasy
搜索结果

    显示/隐藏目录

    SessionIdleCheckerComponent 类

    负责检查会话空闲超时的组件。

    继承
    object
    Entity
    SessionIdleCheckerComponent
    实现
    IEntity
    IDisposable
    IPool
    继承成员
    Entity.Id
    Entity.RunTimeId
    Entity.IsDisposed
    Entity.Scene
    Entity.Parent
    Entity.Type
    Entity.GetParent<T>()
    Entity.Create<T>(Scene, bool, bool)
    Entity.Create<T>(Scene, long, bool, bool)
    Entity.AddComponent<T>(bool)
    Entity.AddComponent<T>(long, bool)
    Entity.AddComponent(Entity)
    Entity.AddComponent<T>(T)
    Entity.GetComponent<T>()
    Entity.GetComponent(Type)
    Entity.GetComponent<T>(long)
    Entity.GetOrAddComponent<T>(bool)
    Entity.RemoveComponent<T>(bool)
    Entity.RemoveComponent<T>(long, bool)
    Entity.RemoveComponent(Entity, bool)
    Entity.RemoveComponent<T>(T, bool)
    Entity.Deserialize(Scene, bool)
    Entity.ForEachSingleCollection
    Entity.ForEachTransfer
    Entity.ForEachMultiEntity
    Entity.ForEachEntity
    Entity.IsPool()
    Entity.SetIsPool(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.Network
    程序集: Fantasy.Net.dll
    语法
    public class SessionIdleCheckerComponent : Entity, IEntity, IDisposable, IPool

    字段

    | 编辑本文 查看源代码

    TimerComponent

    声明
    public TimerComponent TimerComponent
    字段值
    类型 描述
    TimerComponent

    方法

    | 编辑本文 查看源代码

    Dispose()

    重写 Dispose 方法以释放资源。

    声明
    public override void Dispose()
    重写
    Entity.Dispose()
    | 编辑本文 查看源代码

    Start(int, int)

    使用指定的间隔和空闲超时时间启动空闲检查功能。

    声明
    public void Start(int interval, int timeOut)
    参数
    类型 名称 描述
    int interval

    以毫秒为单位的检查间隔。

    int timeOut

    以毫秒为单位的空闲超时时间。

    | 编辑本文 查看源代码

    Stop()

    停止空闲检查功能。

    声明
    public void Stop()

    实现

    IEntity
    IDisposable
    IPool

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX