Example #1
0
 public void ToStringTest()
 {
     WorldPosition target = new WorldPosition(); // TODO: Passenden Wert initialisieren
     string expected = string.Empty; // TODO: Passenden Wert initialisieren
     string actual;
     actual = target.ToString();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
 }
Example #2
0
 public static OctTree GetTree(WorldPosition position, uint userid)
 {
     var ot = GetObject<OctTree>(position.ToString(), userid);
     if (ot == null)
     {
         ot = new OctTree(new Chunk
         {
             Data = Generator.GenerateChunk(position).Cast<uint>().Select(x => (byte)x).ToArray(),
             Position = position,
             isUntouched = true
         });
         ot.chunk.Value = ot.chunk.Data[4095];
         ot.Optimize();
         RegisterNewObject(ot, false);
         return GetObject<OctTree>(ot.Key, userid);
     }
     return ot;
 }