| | 1 | | namespace DCL.ECSComponents |
| | 2 | | { |
| | 3 | | public static class PBCylinderShape_Defaults |
| | 4 | | { |
| | 5 | | public static bool GetWithCollisions(this PBCylinderShape self) |
| | 6 | | { |
| 0 | 7 | | return !self.HasWithCollisions || self.WithCollisions; |
| | 8 | | } |
| | 9 | |
|
| | 10 | | public static bool GetIsPointerBlocker(this PBCylinderShape self) |
| | 11 | | { |
| 0 | 12 | | return !self.HasIsPointerBlocker || self.IsPointerBlocker; |
| | 13 | | } |
| | 14 | |
|
| | 15 | | public static bool GetVisible(this PBCylinderShape self) |
| | 16 | | { |
| 0 | 17 | | return !self.HasVisible || self.Visible; |
| | 18 | | } |
| | 19 | |
|
| | 20 | | public static float GetRadiusTop(this PBCylinderShape self) |
| | 21 | | { |
| 6 | 22 | | return self.HasRadiusTop ? self.RadiusTop : 1.0f; |
| | 23 | | } |
| | 24 | |
|
| | 25 | | public static float GetRadiusBottom(this PBCylinderShape self) |
| | 26 | | { |
| 6 | 27 | | return self.HasRadiusBottom ? self.RadiusBottom : 1.0f; |
| | 28 | | } |
| | 29 | | } |
| | 30 | | } |