Files
TEngine/Assets/GameScripts/DotNet/Hotfix/Server/Module/RobotCase/RobotCaseComponentSystem.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

21 lines
535 B
C#

using System;
using System.Collections.Generic;
namespace ET.Server
{
[FriendOf(typeof(RobotCaseComponent))]
public static partial class RobotCaseComponentSystem
{
public static int GetN(this RobotCaseComponent self)
{
return ++self.N;
}
public static async ETTask<RobotCase> New(this RobotCaseComponent self)
{
await ETTask.CompletedTask;
RobotCase robotCase = self.AddChild<RobotCase>();
return robotCase;
}
}
}