(errors: string[], path: string, t: TransformData)
| 144 | } |
| 145 | |
| 146 | function validateTransform(errors: string[], path: string, t: TransformData): void { |
| 147 | if (!t) { |
| 148 | errors.push(path + ' is missing'); |
| 149 | return; |
| 150 | } |
| 151 | checkVec3(errors, path + '.position', t.position); |
| 152 | checkVec3(errors, path + '.rotation', t.rotation); |
| 153 | checkVec3(errors, path + '.scale', t.scale); |
| 154 | } |
| 155 | |
| 156 | function validateTerrain(errors: string[], t: TerrainData): void { |
| 157 | if (!(t.width > 0) || !(t.depth > 0)) { |
no test coverage detected