提交示例代码
This commit is contained in:
15
聊天系统课程代码/Server/Entity/Chat/Model/ChatInfoTree.cs
Normal file
15
聊天系统课程代码/Server/Entity/Chat/Model/ChatInfoTree.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Runtime.Serialization;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using Newtonsoft.Json;
|
||||
using ProtoBuf;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public partial class ChatInfoTree
|
||||
{
|
||||
[BsonIgnore]
|
||||
[JsonIgnore]
|
||||
[ProtoIgnore]
|
||||
[IgnoreDataMember]
|
||||
public Scene Scene { get; set; }
|
||||
}
|
||||
11
聊天系统课程代码/Server/Entity/Chat/Model/ChatUnit.cs
Normal file
11
聊天系统课程代码/Server/Entity/Chat/Model/ChatUnit.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace Fantasy;
|
||||
|
||||
public sealed class ChatUnit : Entity
|
||||
{
|
||||
public string UserName;
|
||||
public long GateRouteId;
|
||||
public readonly Dictionary<long, ChatChannelComponent> Channels = new();
|
||||
public readonly Dictionary<int, long> SendTime = new Dictionary<int, long>();
|
||||
}
|
||||
Reference in New Issue
Block a user