public void AddWell(EnergyWell comp) { if (Wells.Any((c) => c == comp)) { //zzLib.Log.Warning("World重复注册 at" + comp.parent.Position.ToString()); return; } Wells.Add(comp); comp.WorldNetNode = this; }
public void RemoveWell(EnergyWell comp) { Wells.Remove(comp); comp.WorldNetNode = null; }