Some code cleanup and formatting

This commit is contained in:
Sardelka
2022-09-06 21:46:35 +08:00
parent 6c82895fa7
commit 4621fb4987
54 changed files with 1150 additions and 1108 deletions

View File

@ -30,12 +30,12 @@ namespace RageCoop.Server.Scripting
/// <summary>
/// Get the <see cref="ResourceFile"/> that the script belongs to.
/// </summary>
public ResourceFile CurrentFile { get; internal set; }
public ResourceFile CurrentFile { get; internal set; }
/// <summary>
/// Eqivalent of <see cref="ServerResource.Logger"/> in <see cref="CurrentResource"/>
/// </summary>
public Core.Logger Logger { get { return CurrentResource.Logger; } }
public Core.Logger Logger => CurrentResource.Logger;
}
/// <summary>
/// Decorate your method with this attribute and use <see cref="API.RegisterCommands{T}"/> or <see cref="API.RegisterCommands(object)"/> to register commands.