Skip to content

Commit 24e9a19

Browse files
authored
Вырезан цк Ии (corvax-team#352)
* вырезание цк ии 1 * фиксы фиксы 2 * убраны лишние лок строки
1 parent 247c92f commit 24e9a19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+0
-10079
lines changed

Content.Client/Entry/EntryPoint.cs

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838
using Robust.Shared.Prototypes;
3939
using Robust.Shared.Replays;
4040
using Robust.Shared.Timing;
41-
using Robust.Shared.Serialization.Markdown.Sequence;
42-
using Robust.Shared.Serialization.Markdown;
43-
using Robust.Shared.Utility;
44-
using System.IO;
45-
using Robust.Shared.Serialization.Markdown.Mapping;
4641

4742
namespace Content.Client.Entry
4843
{
@@ -134,13 +129,6 @@ public override void Init()
134129
_prototypeManager.RegisterIgnore("codewordGenerator");
135130
_prototypeManager.RegisterIgnore("codewordFaction");
136131

137-
//WL-Changes-start
138-
foreach (var item in IgnorePrototypes())
139-
{
140-
_prototypeManager.RegisterIgnore(item);
141-
}
142-
//WL-Changes-end
143-
144132
_componentFactory.GenerateNetIds();
145133
_adminManager.Initialize();
146134
_screenshotHook.Initialize();
@@ -254,55 +242,5 @@ public override void Update(ModUpdateLevel level, FrameEventArgs frameEventArgs)
254242
}
255243
}
256244
}
257-
258-
//WL-Changes-start
259-
private HashSet<string> IgnorePrototypes()
260-
{
261-
var sequence = new HashSet<string>();
262-
263-
#if !FULL_RELEASE //&& !RELEASE
264-
foreach (var path in _resourceManager.ContentFindFiles("/"))
265-
{
266-
try
267-
{
268-
if (!path.CanonPath.Contains("_SERVER"))
269-
continue;
270-
271-
if (!_resourceManager.TryContentFileRead(path, out var stream))
272-
continue;
273-
274-
using var reader = new StreamReader(stream, EncodingHelpers.UTF8);
275-
var documents = DataNodeParser.ParseYamlStream(reader);
276-
277-
if (documents == null)
278-
continue;
279-
280-
foreach (var document in documents)
281-
{
282-
var seq = ((SequenceDataNode)document.Root).Sequence;
283-
284-
foreach (var item in seq)
285-
{
286-
287-
if (item is not MappingDataNode mapping_node)
288-
continue;
289-
290-
if (!mapping_node.TryGet("type", out var node))
291-
continue;
292-
293-
sequence.Add(node.ToString());
294-
}
295-
}
296-
}
297-
catch
298-
{
299-
continue;
300-
}
301-
}
302-
#endif
303-
304-
return sequence;
305-
}
306-
//WL-Changes-end
307245
}
308246
}

Content.Server/Entry/EntryPoint.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Content.Server._WL.ChatGpt.Managers;
21
using Content.Server.Acz;
32
using Content.Server.Administration;
43
using Content.Server.Administration.Logs;
@@ -18,8 +17,6 @@
1817
using Content.Server.IoC;
1918
using Content.Server.Maps;
2019
using Content.Server.NodeContainer.NodeGroups;
21-
using Content.Server.Objectives;
22-
using Content.Server.Players;
2320
using Content.Server.Players.JobWhitelist;
2421
using Content.Server.Players.PlayTimeTracking;
2522
using Content.Server.Players.RateLimiting;
@@ -122,10 +119,6 @@ public override void Init()
122119
_watchlistWebhookManager.Initialize();
123120
IoCManager.Resolve<JobWhitelistManager>().Initialize();
124121
IoCManager.Resolve<PlayerRateLimitManager>().Initialize();
125-
126-
//WL-Changes-start
127-
IoCManager.Resolve<IChatGptManager>().Initialize();
128-
//WL-Changes-end
129122
}
130123
}
131124

Content.Server/IoC/ServerContentIoC.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Content.Server._WL.ChatGpt.Managers;
21
using Content.Server.Administration;
32
using Content.Server.Administration.Logs;
43
using Content.Server.Administration.Managers;
@@ -64,9 +63,6 @@ public static void Register()
6463
IoCManager.Register<PlayTimeTrackingManager>();
6564
IoCManager.Register<UserDbDataManager>();
6665
IoCManager.Register<TTSManager>(); // Corvax-TTS
67-
//WL-Changes-start
68-
IoCManager.Register<IChatGptManager, ChatGptManager>();
69-
//WL-Changes-end
7066
IoCManager.Register<ServerInfoManager>();
7167
IoCManager.Register<PoissonDiskSampler>();
7268
IoCManager.Register<DiscordWebhook>();

Content.Server/_WL/CCVars/ServerWLCVars.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

Content.Server/_WL/ChatGpt/AIChatPrototype.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

Content.Server/_WL/ChatGpt/Commands/ClearAIContextCommand.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

Content.Server/_WL/ChatGpt/Commands/EnableCCAICommand.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

Content.Server/_WL/ChatGpt/Elements/OpenAi/AccountBalance.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

Content.Server/_WL/ChatGpt/Elements/OpenAi/Extensions/GptResponseExt.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

Content.Server/_WL/ChatGpt/Elements/OpenAi/Functions/CallEvacShuttleFunction.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)