Regulus.Remote.Tools.Protocol.Sources/Codes/RegulusRemoteIGhostGetID.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 GetID = MethodDeclaration(
PredefinedType(
Token(SyntaxKind.LongKeyword)
),
Identifier("GetID")
)
.WithExplicitInterfaceSpecifier(
ExplicitInterfaceSpecifier(
_RegulusRemoteIGhost
)
)
.WithBody(
Block(
SingletonList(
(StatementSyntax)ReturnStatement(
IdentifierName("_GhostId")
)
)
)
);
}
}