Exemplo n.º 1
0
 public static void IsPlacementValid(string type, Vector3 pos, float rotation)
 {
     if (GetCurrentWorld().FurnitureManager.IsPlacementValid(type, GetTileAt(pos), rotation))
     {
         DevConsole.Log("Spot is valid!", "green");
     }
     else
     {
         DevConsole.LogWarning("Spot isn't valid!");
     }
 }
Exemplo n.º 2
0
 public static void IsWorkSpotClear(string type, Vector3 pos)
 {
     if (GetCurrentWorld().FurnitureManager.IsWorkSpotClear(type, GetTileAt(pos)))
     {
         DevConsole.Log("Work spot is clear!", "green");
     }
     else
     {
         DevConsole.LogWarning("Work spot isn't clear!");
     }
 }
        public static void IsPlacementValid(string type, Vector3 pos, float rotation)
        {
            World world;
            Tile  t;

            if (ModUtils.GetCurrentWorld(out world) && ModUtils.GetTileAt(pos, out t))
            {
                if (world.FurnitureManager.IsPlacementValid(type, t, rotation))
                {
                    DevConsole.Log("Spot is valid!", "green");
                }
                else
                {
                    DevConsole.LogWarning("Spot isn't valid!");
                }
            }
        }
        public static void IsWorkSpotClear(string type, Vector3 pos)
        {
            World world;
            Tile  t;

            if (ModUtils.GetCurrentWorld(out world) && ModUtils.GetTileAt(pos, out t))
            {
                if (world.FurnitureManager.IsWorkSpotClear(type, t))
                {
                    DevConsole.Log("Work spot is clear!", "green");
                }
                else
                {
                    DevConsole.LogWarning("Work spot isn't clear!");
                }
            }
        }