public bool Equals(LevelVBItem other) { return Position == other.Position && Normal == other.Normal && UV0 == other.UV0 && UV1 == other.UV1 && Colour == other.Colour ; }
public int Write(LevelVBItem levelVBItem) { int index; if (!map.TryGetValue(levelVBItem, out index)) { var lastVB = level.VertexBuffers[level.VertexBuffers.Count - 1]; index = lastVB.vb.Count; lastVB.vb.Add(levelVBItem); map[levelVBItem] = index; } return index; }