Regulus.Remote.Tools.Protocol.Sources/Codes/RegulusRemoteIGhostField_GhostId.cs
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
namespace Regulus.Remote.Tools.Protocol.Sources.Codes
{
public static partial class RegulusRemoteIGhost
{
public static readonly MemberDeclarationSyntax Field_GhostId = FieldDeclaration(
VariableDeclaration(
PredefinedType(
Token(SyntaxKind.LongKeyword)
)
)
.WithVariables(
SingletonSeparatedList<VariableDeclaratorSyntax>(
VariableDeclarator(
Identifier("_GhostId")
)
)
)
)
.WithModifiers(
TokenList(
Token(SyntaxKind.ReadOnlyKeyword)
)
);
}
}