mirror of
https://github.com/roflmuffin/CounterStrikeSharp.git
synced 2025-12-05 23:58:24 -08:00
chore: cleanup dotnet errors
This commit is contained in:
@@ -4,13 +4,20 @@ namespace CodeGen.Natives;
|
||||
|
||||
class NativeDefinition
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public NativeDefinition(string name, Dictionary<string, string> arguments, string returnType)
|
||||
{
|
||||
Name = name;
|
||||
Arguments = arguments;
|
||||
ReturnType = returnType;
|
||||
}
|
||||
|
||||
public string Name { get; init; }
|
||||
|
||||
public string NameCamelCase => Name.ToPascalCase();
|
||||
|
||||
public Dictionary<string, string> Arguments { get; set; }
|
||||
public Dictionary<string, string> Arguments { get; init; }
|
||||
|
||||
public string ReturnType { get; set; }
|
||||
public string ReturnType { get; init; }
|
||||
|
||||
public ulong Hash
|
||||
{
|
||||
|
||||
@@ -54,12 +54,7 @@ namespace CodeGen.Natives
|
||||
);
|
||||
}
|
||||
|
||||
natives.Add(new()
|
||||
{
|
||||
Name = nativeName,
|
||||
ReturnType = returnType,
|
||||
Arguments = parameters
|
||||
});
|
||||
natives.Add(new(nativeName, parameters, returnType));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user