mycj_demo/mycj/Assets/Game/Scripts/FB-Framework/FB-MVC/FBModel.cs
2024-12-02 09:37:47 +08:00

43 lines
1.2 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Felix-BangFBModel
//   へ     /|
//  /7    ∠_/
//  / │    
//  Z _,    /`ヽ
// │     ヽ   /  〉
//  Y     `  /  /
// イ● 、 ●  ⊂⊃〈  /
// ()  へ    | \〈
//  >ー 、_  ィ  │
//  / へ   / ノ<|
//  ヽ_ノ  (_  │//
//  7       |
//  ―r ̄ ̄`ー―_
// Describe所有数据模型的基类不需要实例化
// Model不需要引用View和Controller中的方法只需要发送消息即可
// Createtime2018/9/19
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace FBFramework
{
public abstract class FBModel
{
/// <summary> 名称:用于检索 </summary>
public abstract string Name { get; }
/// <summary>
/// 发送事件
/// </summary>
/// <param name="eventName">时间名</param>
/// <param name="data">携带数据信息</param>
protected void SendEvent(string eventName, object data = null)
{
FBMVC.SendEvent(eventName,data);
}
}
}