12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Linq;
- namespace ET.Server
- {
- public static class RobotManagerComponentSystem
- {
- public static async ETTask<Scene> NewRobot(this RobotManagerComponent self, int zone)
- {
- await ETTask.CompletedTask;
- return null;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
-
- public static void RemoveAll(this RobotManagerComponent self)
- {
- foreach (Entity robot in self.Children.Values.ToArray())
- {
- robot.Dispose();
- }
- }
-
- public static void Remove(this RobotManagerComponent self, long id)
- {
- self.GetChild<Scene>(id)?.Dispose();
- }
- public static void Clear(this RobotManagerComponent self)
- {
- foreach (Entity entity in self.Children.Values.ToArray())
- {
- entity.Dispose();
- }
- }
- }
- }
|