private static MiniBall[] ReadMiniBalls(BinaryReader reader) { int extraCount = reader.ReadInt16(); var ret = new MiniBall[extraCount]; if (extraCount > 0) { for (int i = 0; i < extraCount; i++) { ret[i] = reader.ReadStruct <MiniBall>(); } } return(ret); }
private static void PrintMiniBall(StringBuilder sb, string indention, MiniBall miniBall) { sb.AppendLine(indention + "[MiniBall]"); sb.AppendLine(indention + Indention + "[Radius: " + miniBall.Radius + "]"); sb.AppendLine(indention + Indention + "[Offset: " + miniBall.Offset + "]"); }
private static MiniBall[] ReadMiniBalls(BinaryReader reader) { int extraCount = reader.ReadInt16(); var ret = new MiniBall[extraCount]; if (extraCount > 0) { for (int i = 0; i < extraCount; i++) ret[i] = reader.ReadStruct<MiniBall>(); } return ret; }