Files
RAGECOOP-V/Client/Scripts/Scripting/ClientScript.cs

24 lines
769 B
C#
Raw Normal View History

2022-10-23 19:02:39 +08:00
using GTA;
using RageCoop.Core;
using RageCoop.Core.Scripting;
2022-07-01 12:22:31 +08:00
namespace RageCoop.Client.Scripting
{
2022-10-23 19:02:39 +08:00
public abstract class ClientScript : Script
{
/// <summary>
2022-10-23 19:02:39 +08:00
/// Get the <see cref="ResourceFile" /> instance where this script is loaded from.
/// </summary>
2022-10-23 19:02:39 +08:00
public ResourceFile CurrentFile { get; internal set; }
/// <summary>
2022-10-23 19:02:39 +08:00
/// Get the <see cref="ClientResource" /> that this script belongs to.
/// </summary>
2022-10-23 19:02:39 +08:00
public ClientResource CurrentResource { get; internal set; }
2022-07-01 12:22:31 +08:00
/// <summary>
2022-10-23 19:02:39 +08:00
/// Eqivalent of <see cref="ClientResource.Logger" /> in <see cref="CurrentResource" />
2022-07-01 12:22:31 +08:00
/// </summary>
2022-10-23 19:02:39 +08:00
public Logger Logger => CurrentResource.Logger;
}
2022-10-23 19:02:39 +08:00
}