ae95b95bbcce4c49bb473f0f36e521882019b651..da45ccae4c4b03fa50308b442a04ccfd3de160e0
13 hours ago 薛之猫大王
添加文档注释
da45cc diff | tree
13 hours ago 薛之猫大王
修改掉作者标记
aa2f44 diff | tree
33 files modified
194 ■■■■■ changed files
Assets/Scripts/Client/ClientPlugin.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/Game/ClientApp.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/Hotfix/MVC/Base/AppFacade.cs 13 ●●●●● patch | view | raw | blame | history
Assets/Scripts/Hotfix/MVC/View_Mediator/Login/LoginMediator.cs 35 ●●●● patch | view | raw | blame | history
Assets/Scripts/IFix/HotfixService_IFix/HotFixObject_IFix.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/IFix/HotfixService_IFix/HotFixService_IFix.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/IFix/IFixPlugin.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/Native/HotfixService_Native/HotFixObject_Native.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/Native/HotfixService_Native/HotFixService_Native.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/Native/NativePlugin.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/AssetService/AddressAssetService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/AssetService/AddressAssets.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/AssetService/BaseAssetService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/AssetService/XAssetService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/AssetService/XAssets.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/CorePlugin.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/HotFixService/HotFixObject.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/HotFixService/HotFixService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/HotFixService/HotFixService_ILRT.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/HotFixService/HotFixService_Reflect.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/ADService/ADService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/AssetService/IAsset.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/AssetService/IAssetService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/DataService/IDataService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/HotFixService/IHotFixObject.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/HotFixService/IHotFixService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/IModule.cs 26 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/LogService/ILogService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/PluginManager/IPlugin.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/Interface/PluginManager/IPluginManager.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/LogService/LogService.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/LogService/UnityRollingFileAppender.cs 4 ●●●● patch | view | raw | blame | history
Assets/Skyunion/RunTime/PluginManager/Plugin.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/Client/ClientPlugin.cs
@@ -5,9 +5,9 @@
// Description:
//      客户端模块的插件
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using Client;
using Skyunion;
Assets/Scripts/Game/ClientApp.cs
@@ -5,9 +5,9 @@
// Description:
//      客户端应用类,初始化插件使用。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using UnityEngine;
using System.Collections;
Assets/Scripts/Hotfix/MVC/Base/AppFacade.cs
@@ -223,6 +223,7 @@
        /// 解耦:对象间解耦,互不直接依赖
        /// 可扩展:新增中介者只需注册,无需修改现有代码
        /// 可维护:统一管理对象关系,易于维护
        /// 但是这里的中介者更像视图控制器
        /// </summary>
        public override void RegisterMediator(IMediator mediator)////注册视图控制器中介者
        {
@@ -289,7 +290,17 @@
                m_globalMap.Remove(mediatorName);
            }
        }
        /// <summary>
        /// 观察者模式:定义对象间的一对多依赖,让多个对象不需要直接交互,通过观察者协调
        /// 工作原理:
        /// 注册:将观察者与被观察者绑定
        ///   RegisterObserver(new Observer());
        /// 触发:被观察者状态改变时通知观察者
        ///   AppFacade.GetInstance().SendNotification("PlayerInfoChanged", playerData);
        /// 处理:观察者实现 HandleNotification 方法处理业务逻辑
        /// 优势:
        /// 解耦:对象间解耦,互不直接依赖
        /// </summary>
        public override void SendNotification(string notificationName, object body = null, string type = null)
        {
            base.SendNotification(notificationName, body, type);
Assets/Scripts/Hotfix/MVC/View_Mediator/Login/LoginMediator.cs
@@ -1,9 +1,9 @@
// =============================================================================== 
// Author              :    Gen By Tools
// Create Time         :    Tuesday, December 24, 2019
// Update Time         :    Tuesday, December 24, 2019
// Author              :    薛之猫
// Create Time         :    Sunday, January 11, 2026
// Update Time         :    Sunday, January 11, 2026
// Class Description   :    LoginMediator
// Copyright IGG All rights reserved.
// Copyright 虚幻骑士科技 All rights reserved.
// ===============================================================================
using UnityEngine;
@@ -16,20 +16,41 @@
using UnityEngine.UI;
namespace Game {
    /// <summary>
    /// 登录视图控制器中介者
    /// </summary>
    public class LoginMediator : GameMediator {
        #region Member
        #region 成员
        /// <summary>
        /// 中介者名称,作为视图中介者的唯一标识符,用于在AppFacade中查找和注册,或者移除中介者
        /// </summary>
        public static string NameMediator = "LoginMediator";
        /// <summary>
        /// 玩家代理
        /// </summary>
        private PlayerProxy _playerProxy;
        /// <summary>
        /// 上次登录名称
        /// </summary>
        private string _lastLoginName;
        /// <summary>
        /// 网络代理
        /// </summary>
        private NetProxy m_netProxy;
        
        #endregion
        //IMediatorPlug needs
        /// <summary>
        /// 构造函数,构造的视图组件交给中介者管理
        /// </summary>
        /// <param name="viewComponent">视图组件</param>
        public LoginMediator(object viewComponent ):base(NameMediator, viewComponent ) {}
        /// <summary>
        /// 登录视图
        /// </summary>
        public LoginView view;
        private string m_serverIP;
@@ -50,7 +71,7 @@
       
        #region UI template method
        #region UI 模板方法
        public override void OpenAniEnd(){
Assets/Scripts/IFix/HotfixService_IFix/HotFixObject_IFix.cs
@@ -5,9 +5,9 @@
// Description:
//      热更新对象 接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using Skyunion;
using System;
Assets/Scripts/IFix/HotfixService_IFix/HotFixService_IFix.cs
@@ -5,9 +5,9 @@
// Description:
//      代码热更新服务类
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Scripts/IFix/IFixPlugin.cs
@@ -5,9 +5,9 @@
// Description:
//      本地代码插件
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using Skyunion;
#if UNITY_EDITOR
Assets/Scripts/Native/HotfixService_Native/HotFixObject_Native.cs
@@ -5,9 +5,9 @@
// Description:
//      热更新对象 接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using Skyunion;
using System;
Assets/Scripts/Native/HotfixService_Native/HotFixService_Native.cs
@@ -5,9 +5,9 @@
// Description:
//      代码热更新服务类
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Scripts/Native/NativePlugin.cs
@@ -5,9 +5,9 @@
// Description:
//      本地代码插件
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using Skyunion;
#if UNITY_EDITOR
Assets/Skyunion/RunTime/AssetService/AddressAssetService.cs
@@ -5,9 +5,9 @@
// Description:
//      资源加载服务类,提供文件的同步异步加载,提供Unity AB的同步异步加载和资源的声明周期。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.IO;
Assets/Skyunion/RunTime/AssetService/AddressAssets.cs
@@ -5,9 +5,9 @@
// Description:
//      资源实现类,对 XAsset的 Asset进行绑定。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/AssetService/BaseAssetService.cs
@@ -5,9 +5,9 @@
// Description:
//      资源加载服务类,提供文件的同步异步加载,提供Unity AB的同步异步加载和资源的声明周期。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.IO;
Assets/Skyunion/RunTime/AssetService/XAssetService.cs
@@ -5,9 +5,9 @@
// Description:
//      资源加载服务类,提供文件的同步异步加载,提供Unity AB的同步异步加载和资源的声明周期。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/AssetService/XAssets.cs
@@ -5,9 +5,9 @@
// Description:
//      资源实现类,对 XAsset的 Asset进行绑定。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/CorePlugin.cs
@@ -5,9 +5,9 @@
// Description:
//      核心模块的插件
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using UnityEngine;
#if UNITY_EDITOR
Assets/Skyunion/RunTime/HotFixService/HotFixObject.cs
@@ -5,9 +5,9 @@
// Description:
//      热更新对象 接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
namespace Skyunion
{
Assets/Skyunion/RunTime/HotFixService/HotFixService.cs
@@ -5,9 +5,9 @@
// Description:
//      代码热更新服务类
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/HotFixService/HotFixService_ILRT.cs
@@ -5,9 +5,9 @@
// Description:
//      代码热更新服务类
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/HotFixService/HotFixService_Reflect.cs
@@ -5,9 +5,9 @@
// Description:
//      代码热更新服务类
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/Interface/ADService/ADService.cs
@@ -5,9 +5,9 @@
// Description:
//      广告服务接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using UnityEngine;
Assets/Skyunion/RunTime/Interface/AssetService/IAsset.cs
@@ -5,9 +5,9 @@
// Description:
//      Unity资源接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using UnityEngine.SceneManagement;
Assets/Skyunion/RunTime/Interface/AssetService/IAssetService.cs
@@ -20,9 +20,9 @@
//      Application.persistentDataPath Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Documents
//      Application.temporaryCachePath Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Library/Caches
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using UnityEngine;
Assets/Skyunion/RunTime/Interface/DataService/IDataService.cs
@@ -5,9 +5,9 @@
// Description:
//      数据对象 接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using ILRuntime.Other;
using System;
Assets/Skyunion/RunTime/Interface/HotFixService/IHotFixObject.cs
@@ -5,9 +5,9 @@
// Description:
//      热更新对象 接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
namespace Skyunion
{
Assets/Skyunion/RunTime/Interface/HotFixService/IHotFixService.cs
@@ -5,9 +5,9 @@
// Description:
//      热更新 服务接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
Assets/Skyunion/RunTime/Interface/IModule.cs
@@ -3,11 +3,11 @@
// Create:
//      2019-10-29
// Description:
//      Ä£¿é½Ó¿Ú
//      ģ��ӿ�
// Author:
//      Îâ½­º£ <421465201@qq.com>
//      �⽭�� <421465201@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
@@ -15,24 +15,24 @@
{
    public interface IModule
    {
        //------------- ½Ó¿Ú -------------------//
        // ¼ì²âÊÇ·ñ³õʼ»¯Íê³É
        //------------- �ӿ� -------------------//
        // ����Ƿ��ʼ�����
        bool Initialized();
        // ³õʼ»¯Ç° ×¼±¸Ò»Ð©±äÁ¿³õʼ»¯
        // ��ʼ��ǰ ׼��һЩ������ʼ��
        void BeforeInit();
        // ½øÐÐÄ£¿éµÄ³õʼ»¯¼ÓÔØÖ®ÀàµÄ
        // ����ģ��ij�ʼ������֮���
        void Init();
        // µÈ´ý³õʼ»¯Íê³É
        // �ȴ���ʼ�����
        void WaitInitAsync(Action complete);
        // È«²¿³õʼ»¯Íê½øÐвÙ×÷
        // ȫ����ʼ������в���
        void AfterInit();
        // Ã¿Ö¡¸üÐÂ
        // ÿ֡����
        void Update();
        // Ã¿Ö¡Öͺó¸üÐÂ
        // ÿ֡�ͺ����
        void LateUpdate();
        // ¹Ø±Õǰ
        // �ر�ǰ
        void BeforeShut();
        // ¹Ø±Õºó
        // �رպ�
        void Shut();
    };
}
Assets/Skyunion/RunTime/Interface/LogService/ILogService.cs
@@ -5,9 +5,9 @@
// Description:
//      日记服务接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using UnityEngine;
Assets/Skyunion/RunTime/Interface/PluginManager/IPlugin.cs
@@ -5,9 +5,9 @@
// Description:
//      插件接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
namespace Skyunion
{
Assets/Skyunion/RunTime/Interface/PluginManager/IPluginManager.cs
@@ -5,9 +5,9 @@
// Description:
//      插件管理器接口
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
Assets/Skyunion/RunTime/LogService/LogService.cs
@@ -5,9 +5,9 @@
// Description:
//      日记服务实现类,管理日记的输出,使用log4net 可以自己配置日记输出形式。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/LogService/UnityRollingFileAppender.cs
@@ -5,9 +5,9 @@
// Description:
//      Log4net Unity输出插件 主要用来修改日记生成的位置
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using System;
using System.Collections;
Assets/Skyunion/RunTime/PluginManager/Plugin.cs
@@ -5,9 +5,9 @@
// Description:
//      插件实现基类, 管理插件所支配的模块。
// Author:
//      吴江海 <421465201@qq.com>
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2019 Johance
// Copyright (c) 2026 虚幻骑士科技
using UnityEngine;
using System.Collections;