Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace RobotNet10.Script;
|
||||
|
||||
/// <summary>
|
||||
/// Khai báo một nhiệm vụ trong hệ thống RobotNet.
|
||||
/// </summary>
|
||||
/// <param name="totalScore"></param>
|
||||
/// <param name="isMultipleRun"></param>
|
||||
/// <param name="autoStart"></param>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
public class MissionAttribute(int totalScore, bool isMultipleRun = true, bool autoStart = false) : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Tổng điểm của nhiệm vụ.
|
||||
/// </summary>
|
||||
public int TotalScore { get; } = totalScore;
|
||||
|
||||
/// <summary>
|
||||
/// Cho phép nhiệm vụ này có thể chạy nhiều lần hay không.
|
||||
/// </summary>
|
||||
public bool IsMultipleRun { get; } = isMultipleRun;
|
||||
|
||||
/// <summary>
|
||||
/// Tự động khởi động nhiệm vụ khi MissionManager chuyển sang trạng thái Running.
|
||||
/// </summary>
|
||||
public bool AutoStart { get; } = autoStart;
|
||||
}
|
||||
Reference in New Issue
Block a user