Пример #1
0
 public void InsertAllGameobjectGeometry(int map)
 {
     foreach (GameObject go in GameObjectHelper.GetAllGameobjectInMap(map))
     {
         Geometry.AddGameObject(go);
     }
 }
Пример #2
0
        public void InsertAllGameobjectGeometry(int x, int y, int map)
        {
            float[] bbMin, bbMax;
            CalculateTileBounds2(out bbMin, out bbMax, x, y);
            foreach (GameObject go in GameObjectHelper.GetAllGameobjectInBoundingBox(bbMin, bbMax, map))
            {
                Geometry.AddGameObject(go);

                /*if (!IsGeometryFine(Geometry))
                 * {
                 *  Console.WriteLine("Broken after adding GameObject " + go.Model);
                 * }*/
            }
        }