/// <summary> /// Returns true if the object can toggle its <see cref="IGameObject.IsWalkable"/> property; false otherwise. /// </summary> /// <param name="self" /> /// <returns> /// True if the object can toggle its walkability without violating a map's collision detection, /// false otherwise. /// </returns> public static bool CanToggleWalkability(this IGameObject self) => self.CanSetWalkability(!self.IsWalkable);