Exemplo n.º 1
0
        public static void GenerateRevealTiles()
        {
            Map map = Map.TerMur;

            for (int x = 1182; x <= 1192; x++)
            {
                for (int y = 1120; y <= 1134; y++)
                {
                    if (map != null && map.CanSpawnMobile(x, y, -42))
                    {
                        var t = new RevealTile();
                        t.MoveToWorld(new Point3D(x, y, -42), map);
                    }
                }
            }

            var tile = new RevealTile();

            tile.MoveToWorld(new Point3D(1180, 883, 0), map);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 882, 0), map);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 881, 0), map);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 880, 0), map);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 879, 0), map);
        }
Exemplo n.º 2
0
        public static void GenerateRevealTiles()
        {
            Map map = Map.TerMur;

            for (int x = 1182; x <= 1192; x++)
            {
                for (int y = 1120; y <= 1134; y++)
                {
                    if (map != null && map.CanSpawnMobile(x, y, -42))
                    {
                        RevealTile t = new RevealTile();
                        t.MoveToWorld(new Point3D(x, y, -42), map);
                        WeakEntityCollection.Add("sa", t);
                    }
                }
            }

            RevealTile tile = new RevealTile();

            tile.MoveToWorld(new Point3D(1180, 883, 0), map);
            WeakEntityCollection.Add("sa", tile);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 882, 0), map);
            WeakEntityCollection.Add("sa", tile);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 881, 0), map);
            WeakEntityCollection.Add("sa", tile);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 880, 0), map);
            WeakEntityCollection.Add("sa", tile);

            tile = new RevealTile();
            tile.MoveToWorld(new Point3D(1180, 879, 0), map);
            WeakEntityCollection.Add("sa", tile);
        }