|
|
@@ -31,7 +31,9 @@ function ChatData:Init()
|
|
|
|
|
|
table.insert(self.data.systemDatas, 1, welcomeSystemData)
|
|
|
table.insert(self.data.chatDatas.worldChats, 1, welcomeSystemData)
|
|
|
-
|
|
|
+ if Constant.OpenSystemLink then
|
|
|
+ ManagerContainer.LuaTimerMgr:AddTimer(5000, 1, self, self.AddSdkLink, nil)
|
|
|
+ end
|
|
|
if not privateChatPersistentSystem then
|
|
|
privateChatPersistentSystem = require("PrivateChatPersistentSystem"):new()
|
|
|
end
|
|
|
@@ -661,4 +663,21 @@ function ChatData:GetChatChannelType()
|
|
|
return self.data.channelType or Enum.ChatChannel.World
|
|
|
end
|
|
|
|
|
|
+
|
|
|
+function ChatData:AddSdkLink()
|
|
|
+ local SdkLinkSystemData = {}
|
|
|
+ SdkLinkSystemData.type = Enum.ChatSystemType.SdkLink
|
|
|
+ SdkLinkSystemData.isSystem = true
|
|
|
+ SdkLinkSystemData.nickname = "SdkLinkTxt"
|
|
|
+ SdkLinkSystemData.sendTime = 0
|
|
|
+
|
|
|
+ --if #self.data.systemDatas >1 then
|
|
|
+ -- local lastData = self.data.systemDatas[#self.data.systemDatas]
|
|
|
+ --SdkLinkSystemData.sendTime = lastData.sendTime + 1
|
|
|
+ --end
|
|
|
+
|
|
|
+
|
|
|
+ table.insert(self.data.systemDatas, #self.data.systemDatas + 1, SdkLinkSystemData)
|
|
|
+ table.insert(self.data.chatDatas.worldChats, #self.data.chatDatas.worldChats + 1, SdkLinkSystemData)
|
|
|
+end
|
|
|
return ChatData
|