Lua向C#逻辑迁移 一期 #13

将整个插件代码上传
This commit is contained in:
2025-10-26 21:48:39 +08:00
parent 56994b3927
commit 648386cd73
785 changed files with 53683 additions and 2 deletions

View File

@ -0,0 +1,53 @@
using System.Collections.Generic;
namespace UnrealSharpScriptGenerator.Tooltip;
public class ParsedTooltip
{
public class TokenString
{
public string SimpleValue = string.Empty;
public string ComplexValue = string.Empty;
public string Value => !string.IsNullOrEmpty(SimpleValue) ? SimpleValue : ComplexValue;
public bool Equals(TokenString other)
{
return Value == other.Value;
}
public bool NotEquals(TokenString other)
{
return Value != other.Value;
}
public void SetValue(string value)
{
SimpleValue = value;
ComplexValue = string.Empty;
}
public void SetValue(ref string value)
{
SimpleValue = string.Empty;
ComplexValue = value;
}
}
public class MiscToken
{
public TokenString TokenName = new();
public TokenString TokenValue = new();
}
public class ParamToken
{
public TokenString ParamName = new();
public TokenString ParamType = new();
public TokenString ParamComment = new();
}
public string BasicTooltipText = string.Empty;
public readonly List<MiscToken> MiscTokens = new(4);
public readonly List<ParamToken> ParamTokens= new(8);
public readonly ParamToken ReturnToken = new();
}