Browse Source

更改QFrame的nameSpace

master
DESKTOP-B25GA9E\W35 2 years ago
parent
commit
ef93cedfad
  1. 6
      Assets/MsgTransmitTools/TCPClient/Script/Source/TCPEventModel.cs
  2. 4
      Assets/MsgTransmitTools/TCPClient/Script/Source/TCPUtility.cs
  3. 9
      Assets/MsgTransmitTools/TCPClient/Script/View/TCPClientView.cs
  4. 6
      Assets/MsgTransmitTools/TCPClient/Script/View/TCPPrinter.cs
  5. 6
      Assets/MsgTransmitTools/UDPClient/UDPClientView.cs
  6. 5
      Assets/MsgTransmitTools/UDPClient/UDPEventModel.cs
  7. 15
      Assets/MsgTransmitTools/UDPClient/UDPPrinter.cs
  8. 2
      Assets/MsgTransmitTools/UDPClient/UDPUtility.cs
  9. 6
      Assets/MsgTransmitTools/src/DataEventModel.cs
  10. 6
      Assets/MsgTransmitTools/src/QFrameCopy.cs

6
Assets/MsgTransmitTools/TCPClient/Script/Source/TCPEventModel.cs

@ -1,12 +1,12 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using QFramework; using QFrameworkCP;
namespace TCPClientTools namespace JXSoft
{ {
//统筹管理TCP的命令池以及相关链接信息 //统筹管理TCP的命令池以及相关链接信息
public class TCPEventModel : DataEventModel, ICanSendCommand,ICanRegisterEvent public class TCPEventModel : DataEventModel
{ {
private TCPLinkState tcpState = TCPLinkState.NoIp; private TCPLinkState tcpState = TCPLinkState.NoIp;
private string tcpAddress = ""; private string tcpAddress = "";

4
Assets/MsgTransmitTools/TCPClient/Script/Source/TCPUtility.cs

@ -1,4 +1,4 @@
using QFramework; using QFrameworkCP;
using UnityEngine; using UnityEngine;
using System; using System;
using System.Text; using System.Text;
@ -8,7 +8,7 @@ using System.Threading.Tasks;
using System.Threading; using System.Threading;
using System.Net.NetworkInformation; using System.Net.NetworkInformation;
namespace TCPClientTools namespace JXSoft
{ {
public class TCPUtility : IUtility public class TCPUtility : IUtility
{ {

9
Assets/MsgTransmitTools/TCPClient/Script/View/TCPClientView.cs

@ -2,10 +2,12 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.Events; using UnityEngine.Events;
using QFramework; using QFrameworkCP;
using TCPClientTools; using JXSoft;
using System; using System;
namespace JXSoft {
public class TCPMangerArchitecture : Architecture<TCPMangerArchitecture> public class TCPMangerArchitecture : Architecture<TCPMangerArchitecture>
{ {
protected override void Init() protected override void Init()
@ -14,7 +16,7 @@ public class TCPMangerArchitecture : Architecture<TCPMangerArchitecture>
this.RegisterModel(new TCPEventModel()); this.RegisterModel(new TCPEventModel());
} }
} }
public class TCPClientView : MonoBehaviour,IController,ICanSendEvent public class TCPClientView : MonoBehaviour,IController
{ {
public UnityEvent onRecievedOpenDevice; public UnityEvent onRecievedOpenDevice;
public UnityEvent onTCPLinkSuccess; public UnityEvent onTCPLinkSuccess;
@ -109,4 +111,5 @@ public class LinkTCPRequest :IRequest{
return JsonUtility.ToJson(this); return JsonUtility.ToJson(this);
} }
} }
}

6
Assets/MsgTransmitTools/TCPClient/Script/View/TCPPrinter.cs

@ -3,12 +3,12 @@ using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.Events; using UnityEngine.Events;
using UnityEngine.UI; using UnityEngine.UI;
using QFramework; using QFrameworkCP;
using System.Threading; using System.Threading;
namespace TCPClientTools namespace JXSoft
{ {
public class TCPPrinter : MonoBehaviour,IController,ICanSendEvent public class TCPPrinter : MonoBehaviour,IController
{ {
private TCPUtility tcpUtil; private TCPUtility tcpUtil;
public Transform tcpMsgContent; public Transform tcpMsgContent;

6
Assets/MsgTransmitTools/UDPClient/UDPClientView.cs

@ -2,9 +2,10 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.Events; using UnityEngine.Events;
using QFramework; using QFrameworkCP;
using System; using System;
namespace JXSoft {
public class UDPMangerArchitecture : Architecture<UDPMangerArchitecture> public class UDPMangerArchitecture : Architecture<UDPMangerArchitecture>
{ {
protected override void Init() protected override void Init()
@ -13,7 +14,7 @@ public class UDPMangerArchitecture : Architecture<UDPMangerArchitecture>
this.RegisterModel(new UDPEventModel()); this.RegisterModel(new UDPEventModel());
} }
} }
public class UDPClientView : MonoBehaviour, IController, ICanSendEvent public class UDPClientView : MonoBehaviour, IController
{ {
public UnityEvent onRecievedOpenDevice; public UnityEvent onRecievedOpenDevice;
public UnityEvent onUDPLinkSuccess; public UnityEvent onUDPLinkSuccess;
@ -104,3 +105,4 @@ public class LinkUDPRequest : IRequest
} }
} }
}

5
Assets/MsgTransmitTools/UDPClient/UDPEventModel.cs

@ -1,8 +1,9 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using QFramework; using QFrameworkCP;
namespace JXSoft {
public class UDPEventModel : DataEventModel public class UDPEventModel : DataEventModel
{ {
private UDPLinkState udpState = UDPLinkState.NoIp; private UDPLinkState udpState = UDPLinkState.NoIp;
@ -115,3 +116,5 @@ using QFramework;
} }
} }
#endregion #endregion
}

15
Assets/MsgTransmitTools/UDPClient/UDPPrinter.cs

@ -1,15 +1,11 @@
using System; using System.Threading;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using QFramework; using QFrameworkCP;
public class UDPPrinter : MonoBehaviour, IController, ICanSendEvent, ICanGetUtility
namespace JXSoft {
public class UDPPrinter : MonoBehaviour, IController
{ {
private UDPUtility udpUtil; private UDPUtility udpUtil;
public Transform udpMsgContent; public Transform udpMsgContent;
@ -55,3 +51,4 @@ public class UDPPrinter : MonoBehaviour, IController, ICanSendEvent, ICanGetUtil
return UDPMangerArchitecture.Interface; return UDPMangerArchitecture.Interface;
} }
} }
}

2
Assets/MsgTransmitTools/UDPClient/UDPUtility.cs

@ -1,5 +1,5 @@
using UnityEngine; using UnityEngine;
using QFramework; using QFrameworkCP;
using System; using System;
using System.Text; using System.Text;
using System.Net.Sockets; using System.Net.Sockets;

6
Assets/MsgTransmitTools/src/DataEventModel.cs

@ -1,13 +1,14 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using QFramework; using QFrameworkCP;
using UnityEngine; using UnityEngine;
using UnityEngine.Events; using UnityEngine.Events;
namespace JXSoft {
//任何通讯类围绕DataEventModel进行 //任何通讯类围绕DataEventModel进行
public abstract class DataEventModel : AbstractModel, ICanSendCommand, ICanRegisterEvent public abstract class DataEventModel : AbstractModel
{ {
public IOCContainer mCommandContainer = new IOCContainer(); public IOCContainer mCommandContainer = new IOCContainer();
public UnityStringEvent onDataRecived = new UnityStringEvent(); public UnityStringEvent onDataRecived = new UnityStringEvent();
@ -186,3 +187,4 @@ public class UnityStringEvent : UnityEvent<string>
{ {
} }
}

6
Assets/MsgTransmitTools/src/QFrameCopy.cs

@ -25,7 +25,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
namespace QFramework namespace QFrameworkCP
{ {
#region Architecture #region Architecture
@ -205,7 +205,7 @@ namespace QFramework
#region Controller #region Controller
public interface IController : IBelongToArchitecture, ICanSendCommand, ICanGetModel, public interface IController : IBelongToArchitecture, ICanSendCommand, ICanGetModel,
ICanRegisterEvent, ICanSendQuery, ICanSendEvent ICanRegisterEvent, ICanSendQuery, ICanSendEvent, ICanGetUtility
{ {
} }
@ -213,7 +213,7 @@ namespace QFramework
#region Model #region Model
public interface IModel : IBelongToArchitecture, ICanSetArchitecture, ICanGetUtility, ICanSendEvent public interface IModel : IBelongToArchitecture, ICanSetArchitecture, ICanGetUtility, ICanSendEvent, ICanSendCommand, ICanRegisterEvent
{ {
void Init(); void Init();
} }

Loading…
Cancel
Save