示例#1
0
 public static IMob addComponant(this IMob m, IComponent c) => m.New(m.Name, m.Number, m.Components.Add(c));
示例#2
0
 public static IMob changeNumber(this IMob m, int number) => m.New(m.Name, number, m.Components);
示例#3
0
 public static IMob changeComponants(this IMob m, ImmutableHashSet <IComponent> comps) => m.New(m.Name, m.Number, comps);
示例#4
0
 public static IMob changeName(this IMob m, string name) => m.New(name, m.Number, m.Components);