Aetheria/Assets/Plugins/MSAGL/Layout/LargeGraphLayout/LgNodeCollection.cs
Reinier Vens dbc522a224 Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged
Added machine gun weapon & VFX
Moved third party code to Plugins folder to improve compile times
2021-01-31 03:52:32 +00:00

67 lines
No EOL
1.8 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Msagl.Core.Layout;
namespace Microsoft.Msagl.Layout.LargeGraphLayout {
internal class LgNodeCollection : IList<Node> {
readonly Func<IEnumerable<Node>> funcOfNodes;
public LgNodeCollection(Func<IEnumerable<LgNodeInfo>> funcOfLgNodes) {
this.funcOfNodes = ()=>funcOfLgNodes().Select(n=>n.GeometryNode);
}
public IEnumerator<Node> GetEnumerator() {
return funcOfNodes().GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator() {
return GetEnumerator();
}
public void Add(Node item) {
throw new NotImplementedException();
}
public void Clear() {
throw new NotImplementedException();
}
public bool Contains(Node item) {
throw new NotImplementedException();
}
public void CopyTo(Node[] array, int arrayIndex) {
throw new NotImplementedException();
}
public bool Remove(Node item) {
throw new NotImplementedException();
}
public int Count {
get {
return funcOfNodes().Count();
}
}
public bool IsReadOnly { get; set; }
public int IndexOf(Node item) {
throw new NotImplementedException();
}
public void Insert(int index, Node item) {
throw new NotImplementedException();
}
public void RemoveAt(int index) {
throw new NotImplementedException();
}
public Node this[int index] {
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
}
}