private void VerticalLine(ObjectsNode node) { Type t = Type.GetType(node.ObjectType); Vector2 position; position.X = node.Position.X; position.Y = node.Position.Y; for (int i = 0; i < node.Size; i++) { Statics.Add(CreateInstance(t, position, node.ItemType, node.ItemCount)); position.Y -= node.Width; } }
private void LeftTriangle(ObjectsNode node) { Type t = Type.GetType(node.ObjectType); Vector2 position; position.X = node.Position.X; position.Y = node.Position.Y; for (int i = 0; i < node.Size; i++) { for (int j = 0; j <= i; j++) { position.X = node.Position.X + i * node.Width; position.Y = node.Position.Y - j * node.Width; Statics.Add(CreateInstance(t, position, node.ItemType, node.ItemCount)); position.Y -= node.Width; } } }