Main/Assets/Code/Logic/Chat/ChatEnums.cs
2025-01-25 04:38:09 +08:00

134 lines
4.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

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.

using Thousandto.Code.Center;
using Thousandto.Plugins.Common;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Thousandto.Core.RootSystem;
using Thousandto.Core.Base;
namespace Thousandto.Code.Logic
{
/// <summary>
/// 0文字 1语音 ,这个是针对协议本身分为3种
/// </summary>
public enum ChatType
{
TEXT =0, //纯文字
AUDIO, //语音
IMG, //图片
}
/// <summary>
/// 消息频道 0世界 1帮会 2队伍 3私聊 4系统 5 小聊天窗口 6王府 7综合
/// </summary>
public enum ChatChanelType
{
WORLD = 0, //世界
GUILD, //帮会 1
TEAM, //队伍 2
PERSONAL, //私聊 3
SYSTEM, //系统 4
MINI, //小聊天框,也当做一个频道处理 5
PALACE, //王府频道 6
ALL, //综合 7
CURRENT, //当前 8
JOINTEAM, //组队 9
Live, //直播 10
Friend, //好友 11
Experience, //历练、冒险频道 12
Cross, //跨服 13
ChuanWen, //传闻 14
CH = 20, //中文 东南亚新增
EN, //英文 东南亚新增
TH, //泰文 东南亚新增
COUNT, //计数
}
// chat node type这个是消息节点类型
public enum TNodeType
{
None = -1,
Text = 0,
Player = 1,
Item = 2,
Image = 3,
Position = 4,
Equipment = 5,
Private = 6,
Audio = 7,
Team = 8,
Vip = 9,
SpaceText = 10, //占位用的,私聊中不显示,其他地方要显示占位空格
Function = 11, //功能节点,用来做点击链接的效果
BigImage = 12,
End,
All = End,
// 代码使用,不能输入
PlayerEx,
TextEx,
ImageEx, // photo mask
CMD, //GM命令
}
public enum TLabelType
{
None = -1,
Content = 0, //普通内容
Player = 1, //角色
World = 2, //世界频道
Private = 3, //私聊
Team = 4, //队伍
Guild = 5, //帮派
System = 6, //系统
Position = 7, //位置
Extra_1 = 8, //额外配置参数
Extra_2 = 9, //额外配置参数
Current = 10, //当前
JoinTeam = 11, //招募
Live = 12, //主播
Friend = 13, //好友
ChuanWen = 14, //传闻
EndID,
}
public enum TLabelColor
{
White = 1, //白
Green = 2, //绿
Blue = 3, //蓝
Purple = 4, //紫
Orange = 5, //橙
Golden = 6, //金
Red = 7, //红
EndID,
}
//坐标节点的类型这是坐标节点的Param3
public enum PositionNodeType
{
Default = 0, //默认,玩家自己发送
System_Move = 1, //系统发送, 仅移动 <t=4>1,mapID,x,y</t>
System_Trans = 2, //系统发送,可直接传送,需要判断是否能传送 <t=4>2,mapID,x,y</t>
System_CloneMapTrans = 3, //系统发送,可直接传送到副本, <t=4>3,mapId_cloneId,x,y</t>
}
//功能节点这是Function节点的Param3
public enum FuncNodeType
{
Default = 0, //默认,暂时不用
Guild_Jion = 1, //加入帮会 <t=11>1,,帮会id</t>
Tean_Jion = 2, //组队招募 <t=11>2,组队id,[自定义显示文字,可以空]</t>
ToGuildNPC = 3, //寻路到公会地图中npc <t=11>3,npcid,[自定义显示文字,可以空]</t>
FunctionStartId = 4, //触发functionStar <t=11>4,[配置表id],</t>
FightSoul = 5, //战魂,不是装备物品 <t=11>5,[配置表id],战魂名字</t>
FuDiHelp = 6, //福地支援 <t=11>6,bossId(配置表ID),[自定义显示文字,可以空]</t>
OpenUI = 7, //打开界面 <t=11>7,ID,[自定义显示文字,可以空]</t>
}
}