예제 #1
0
    /// Is this position and surrounding area completely clear of solid objects except for provided one?
    public bool IsFloatingAt(GameObject[] context, Vector3Int position, bool isServer)
    {
        foreach (Vector3Int pos in position.BoundsAround().allPositionsWithin)
        {
            if (!MetaTileMap.IsEmptyAt(context, pos, isServer))
            {
                return(false);
            }
        }

        return(true);
    }
예제 #2
0
 public bool IsEmptyAt(Vector3Int position, bool isServer)
 {
     return(MetaTileMap.IsEmptyAt(position, isServer));
 }
예제 #3
0
 public bool IsEmptyAt(Vector3Int position)
 {
     return(metaTileMap.IsEmptyAt(position));
 }