2023-02-12 22:06:57 +08:00
|
|
|
|
using GTA;
|
2023-02-13 20:44:50 +08:00
|
|
|
|
using RageCoop.Core.Scripting;
|
2023-02-12 22:06:57 +08:00
|
|
|
|
|
|
|
|
|
namespace RageCoop.Client.Scripting
|
|
|
|
|
{
|
|
|
|
|
[ScriptAttributes(NoDefaultInstance = true)]
|
2023-02-13 20:44:50 +08:00
|
|
|
|
public abstract class ClientScript : Script
|
2023-02-12 22:06:57 +08:00
|
|
|
|
{
|
2023-02-13 20:44:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the <see cref="ResourceFile" /> instance where this script is loaded from.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ClientFile CurrentFile { get; internal set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the <see cref="ClientResource" /> that this script belongs to.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ClientResource CurrentResource { get; internal set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Eqivalent of <see cref="ClientResource.Logger" /> in <see cref="Script.CurrentResource" />
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Core.Logger Logger => CurrentResource.Logger;
|
2023-02-12 22:06:57 +08:00
|
|
|
|
}
|
|
|
|
|
}
|