Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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 + "]");
 }
Exemplo n.º 3
0
 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 + "]");
 }
Exemplo n.º 4
0
 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;
 }