예제 #1
0
 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;
 }
예제 #2
0
 public void RemoveWell(EnergyWell comp)
 {
     Wells.Remove(comp);
     comp.WorldNetNode = null;
 }