Fantasy
搜索结果

    显示/隐藏目录

    AClientNetwork 类

    抽象客户端网络基类。

    继承
    object
    Entity
    ANetwork
    AClientNetwork
    KCPClientNetwork
    TCPClientNetwork
    WebSocketClientNetwork
    实现
    IEntity
    IPool
    INetworkChannel
    IDisposable
    继承成员
    ANetwork.NetworkType
    ANetwork.NetworkTarget
    ANetwork.NetworkProtocolType
    ANetwork.NetworkMessageScheduler
    ANetwork.Initialize(NetworkType, NetworkProtocolType, NetworkTarget)
    ANetwork.RemoveChannel(uint)
    ANetwork.RentMemoryStream(int)
    ANetwork.ReturnMemoryStream(MemoryStreamBuffer)
    ANetwork.RentOuterPackInfo()
    ANetwork.ReturnOuterPackInfo(OuterPackInfo)
    ANetwork.RentInnerPackInfo()
    ANetwork.ReturnInnerPackInfo(InnerPackInfo)
    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.Interface
    程序集: Fantasy.Net.dll
    语法
    public abstract class AClientNetwork : ANetwork, IEntity, IPool, INetworkChannel, IDisposable

    字段

    | 编辑本文 查看源代码

    IsInit

    声明
    protected bool IsInit
    字段值
    类型 描述
    bool

    属性

    | 编辑本文 查看源代码

    Session

    声明
    public Session Session { get; protected set; }
    属性值
    类型 描述
    Session

    方法

    | 编辑本文 查看源代码

    Connect(string, Action, Action, Action, bool, int)

    声明
    public abstract Session Connect(string remoteAddress, Action onConnectComplete, Action onConnectFail, Action onConnectDisconnect, bool isHttps, int connectTimeout = 5000)
    参数
    类型 名称 描述
    string remoteAddress
    Action onConnectComplete
    Action onConnectFail
    Action onConnectDisconnect
    bool isHttps
    int connectTimeout
    返回
    类型 描述
    Session
    | 编辑本文 查看源代码

    Dispose()

    销毁当前实体,销毁后会自动销毁当前实体下的所有实体。

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

    Send(uint, long, MemoryStreamBuffer, IMessage)

    声明
    public abstract void Send(uint rpcId, long routeId, MemoryStreamBuffer memoryStream, IMessage message)
    参数
    类型 名称 描述
    uint rpcId
    long routeId
    MemoryStreamBuffer memoryStream
    IMessage message

    实现

    IEntity
    IPool
    INetworkChannel
    IDisposable

    扩展方法

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