mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-05-09 12:51:54 -05:00
33 lines
809 B
C#
33 lines
809 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace DSPRE.ROMFiles {
|
|
public class HeadbuttTreeGroup {
|
|
const int treeCount = 6; //number of trees in each tree group
|
|
|
|
public List<HeadbuttTree> trees = new List<HeadbuttTree>();
|
|
|
|
public HeadbuttTreeGroup(BinaryReader br) {
|
|
for (int j = 0; j < treeCount; j++) {
|
|
trees.Add(new HeadbuttTree(br));
|
|
}
|
|
}
|
|
|
|
public HeadbuttTreeGroup() {
|
|
for (int j = 0; j < treeCount; j++) {
|
|
trees.Add(new HeadbuttTree());
|
|
}
|
|
}
|
|
|
|
public HeadbuttTreeGroup(HeadbuttTreeGroup original) {
|
|
foreach (HeadbuttTree headbuttTree in original.trees) {
|
|
trees.Add(new HeadbuttTree(headbuttTree));
|
|
}
|
|
}
|
|
|
|
public override string ToString() {
|
|
return $"{nameof(HeadbuttTreeGroup)}";
|
|
}
|
|
}
|
|
}
|