public List <ScrollObject> GetScrolls(int vertexCount, int segmentedAddress, ScrollingTextureDescription std) { List <ScrollObject> scrolls = new List <ScrollObject>(); ScrollObject scr = Fetch(); int size = std.GetTileSizeForScroll(); int minSpeed = 0x400 / size; /* * if (std.scroll.speed >= minSpeed) * { * scrolls.Add(new TextureScroll(std.f2SegmentedAddress, * (byte) (std.scroll.speed * size / 0x40), std.scroll.acts, std.scroll.axis, * f2ScrollBehaviour, scr.romOffset)); * } * else */ { scrolls.Add(new EditorScroll(vertexCount, segmentedAddress, std.scroll.speed, std.scroll.acts, std.scroll.axis, editorScrollBehaviour, scr.romOffset)); } return(scrolls); }
public void AddTriangle(ScrollingTextureDescription td, Vertex v0, Vertex v1, Vertex v2) { if (!map.TryGetValue(td, out List <Triangle> set)) { set = new List <Triangle>(); map[td] = set; } Triangle tri = new Triangle(v0, v1, v2); set.Add(tri); }