Skip to content

Commit 01cdbfc

Browse files
committed
extract LogWrapper class from LogCache
1 parent fad5c40 commit 01cdbfc

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

Unity-MCP-Plugin/Assets/root/Runtime/Unity/Logs/LogCache.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ public static class LogCache
3636
static string _cacheFile = $"{Path.Combine(_cacheFilePath, _cacheFileName)}";
3737
static readonly object _fileLock = new();
3838
static bool _initialized = false;
39-
[System.Serializable]
40-
class LogWrapper
41-
{
42-
public LogEntry[] entries;
43-
}
4439

4540
public static void Initialize()
4641
{
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
┌──────────────────────────────────────────────────────────────────┐
3+
│ Author: Ivan Murzak (https://github.com/IvanMurzak) │
4+
│ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │
5+
│ Copyright (c) 2025 Ivan Murzak │
6+
│ Licensed under the Apache License, Version 2.0. │
7+
│ See the LICENSE file in the project root for more information. │
8+
└──────────────────────────────────────────────────────────────────┘
9+
*/
10+
#pragma warning disable CS8632 // The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
11+
12+
namespace com.IvanMurzak.Unity.MCP
13+
{
14+
[System.Serializable]
15+
internal class LogWrapper
16+
{
17+
public LogEntry[] entries;
18+
}
19+
}

Unity-MCP-Plugin/Assets/root/Runtime/Unity/Logs/LogWrapper.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)