36 lines
920 B
C#
36 lines
920 B
C#
using System.ComponentModel;
|
|
using Gameplay.Net;
|
|
using NLDPB;
|
|
|
|
public partial class SROptions
|
|
{
|
|
[Category("军团")]
|
|
[DisplayName("创建一个军团")]
|
|
public void CreateLegion()
|
|
{
|
|
if (LegionManager.Instance.MyLegion == null)
|
|
{
|
|
var legion = new Legion();
|
|
legion.ExamineType = LegionExamineStatus.LgPass;
|
|
legion.HeadIndex = 0;
|
|
legion.ManifestoID = 0;
|
|
legion.Name = "Test0";
|
|
legion.PresidentID = Actor.Instance.Base.GetProp(ActorProp.ActorId);
|
|
legion.TagIdxList = new() { 0 };
|
|
LegionManager.Instance.ReqCreateLegion(legion);
|
|
}
|
|
|
|
}
|
|
|
|
[Category("军团")]
|
|
[DisplayName("解散军团")]
|
|
public void DimissLegion()
|
|
{
|
|
if (LegionManager.Instance.MyLegion != null)
|
|
{
|
|
LegionManager.Instance.DismissMember();
|
|
}
|
|
|
|
}
|
|
}
|