1 /** 2 3 4 Copyright: 5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. 6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) 7 Copyright (c) 2017-2018 Godot-D contributors 8 9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License) 10 11 12 */ 13 module godot.giprobedata; 14 import std.meta : AliasSeq, staticIndexOf; 15 import std.traits : Unqual; 16 import godot.d.meta; 17 import godot.core; 18 import godot.c; 19 import godot.d.bind; 20 import godot.d.reference; 21 import godot.object; 22 import godot.classdb; 23 import godot.resource; 24 import godot.reference; 25 /** 26 27 */ 28 @GodotBaseClass struct GIProbeData 29 { 30 enum string _GODOT_internal_name = "GIProbeData"; 31 public: 32 @nogc nothrow: 33 union { godot_object _godot_object; Resource _GODOT_base; } 34 alias _GODOT_base this; 35 alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses); 36 package(godot) __gshared bool _classBindingInitialized = false; 37 package(godot) static struct _classBinding 38 { 39 __gshared: 40 @GodotName("set_bounds") GodotMethod!(void, AABB) setBounds; 41 @GodotName("get_bounds") GodotMethod!(AABB) getBounds; 42 @GodotName("set_cell_size") GodotMethod!(void, double) setCellSize; 43 @GodotName("get_cell_size") GodotMethod!(double) getCellSize; 44 @GodotName("set_to_cell_xform") GodotMethod!(void, Transform) setToCellXform; 45 @GodotName("get_to_cell_xform") GodotMethod!(Transform) getToCellXform; 46 @GodotName("set_dynamic_data") GodotMethod!(void, PoolIntArray) setDynamicData; 47 @GodotName("get_dynamic_data") GodotMethod!(PoolIntArray) getDynamicData; 48 @GodotName("set_dynamic_range") GodotMethod!(void, long) setDynamicRange; 49 @GodotName("get_dynamic_range") GodotMethod!(long) getDynamicRange; 50 @GodotName("set_energy") GodotMethod!(void, double) setEnergy; 51 @GodotName("get_energy") GodotMethod!(double) getEnergy; 52 @GodotName("set_bias") GodotMethod!(void, double) setBias; 53 @GodotName("get_bias") GodotMethod!(double) getBias; 54 @GodotName("set_normal_bias") GodotMethod!(void, double) setNormalBias; 55 @GodotName("get_normal_bias") GodotMethod!(double) getNormalBias; 56 @GodotName("set_propagation") GodotMethod!(void, double) setPropagation; 57 @GodotName("get_propagation") GodotMethod!(double) getPropagation; 58 @GodotName("set_interior") GodotMethod!(void, bool) setInterior; 59 @GodotName("is_interior") GodotMethod!(bool) isInterior; 60 @GodotName("set_compress") GodotMethod!(void, bool) setCompress; 61 @GodotName("is_compressed") GodotMethod!(bool) isCompressed; 62 } 63 bool opEquals(in GIProbeData other) const { return _godot_object.ptr is other._godot_object.ptr; } 64 GIProbeData opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; } 65 bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; } 66 mixin baseCasts; 67 static GIProbeData _new() 68 { 69 static godot_class_constructor constructor; 70 if(constructor is null) constructor = _godot_api.godot_get_class_constructor("GIProbeData"); 71 if(constructor is null) return typeof(this).init; 72 return cast(GIProbeData)(constructor()); 73 } 74 @disable new(size_t s); 75 /** 76 77 */ 78 void setBounds(in AABB bounds) 79 { 80 checkClassBinding!(typeof(this))(); 81 ptrcall!(void)(_classBinding.setBounds, _godot_object, bounds); 82 } 83 /** 84 85 */ 86 AABB getBounds() const 87 { 88 checkClassBinding!(typeof(this))(); 89 return ptrcall!(AABB)(_classBinding.getBounds, _godot_object); 90 } 91 /** 92 93 */ 94 void setCellSize(in double cell_size) 95 { 96 checkClassBinding!(typeof(this))(); 97 ptrcall!(void)(_classBinding.setCellSize, _godot_object, cell_size); 98 } 99 /** 100 101 */ 102 double getCellSize() const 103 { 104 checkClassBinding!(typeof(this))(); 105 return ptrcall!(double)(_classBinding.getCellSize, _godot_object); 106 } 107 /** 108 109 */ 110 void setToCellXform(in Transform to_cell_xform) 111 { 112 checkClassBinding!(typeof(this))(); 113 ptrcall!(void)(_classBinding.setToCellXform, _godot_object, to_cell_xform); 114 } 115 /** 116 117 */ 118 Transform getToCellXform() const 119 { 120 checkClassBinding!(typeof(this))(); 121 return ptrcall!(Transform)(_classBinding.getToCellXform, _godot_object); 122 } 123 /** 124 125 */ 126 void setDynamicData(in PoolIntArray dynamic_data) 127 { 128 checkClassBinding!(typeof(this))(); 129 ptrcall!(void)(_classBinding.setDynamicData, _godot_object, dynamic_data); 130 } 131 /** 132 133 */ 134 PoolIntArray getDynamicData() const 135 { 136 checkClassBinding!(typeof(this))(); 137 return ptrcall!(PoolIntArray)(_classBinding.getDynamicData, _godot_object); 138 } 139 /** 140 141 */ 142 void setDynamicRange(in long dynamic_range) 143 { 144 checkClassBinding!(typeof(this))(); 145 ptrcall!(void)(_classBinding.setDynamicRange, _godot_object, dynamic_range); 146 } 147 /** 148 149 */ 150 long getDynamicRange() const 151 { 152 checkClassBinding!(typeof(this))(); 153 return ptrcall!(long)(_classBinding.getDynamicRange, _godot_object); 154 } 155 /** 156 157 */ 158 void setEnergy(in double energy) 159 { 160 checkClassBinding!(typeof(this))(); 161 ptrcall!(void)(_classBinding.setEnergy, _godot_object, energy); 162 } 163 /** 164 165 */ 166 double getEnergy() const 167 { 168 checkClassBinding!(typeof(this))(); 169 return ptrcall!(double)(_classBinding.getEnergy, _godot_object); 170 } 171 /** 172 173 */ 174 void setBias(in double bias) 175 { 176 checkClassBinding!(typeof(this))(); 177 ptrcall!(void)(_classBinding.setBias, _godot_object, bias); 178 } 179 /** 180 181 */ 182 double getBias() const 183 { 184 checkClassBinding!(typeof(this))(); 185 return ptrcall!(double)(_classBinding.getBias, _godot_object); 186 } 187 /** 188 189 */ 190 void setNormalBias(in double bias) 191 { 192 checkClassBinding!(typeof(this))(); 193 ptrcall!(void)(_classBinding.setNormalBias, _godot_object, bias); 194 } 195 /** 196 197 */ 198 double getNormalBias() const 199 { 200 checkClassBinding!(typeof(this))(); 201 return ptrcall!(double)(_classBinding.getNormalBias, _godot_object); 202 } 203 /** 204 205 */ 206 void setPropagation(in double propagation) 207 { 208 checkClassBinding!(typeof(this))(); 209 ptrcall!(void)(_classBinding.setPropagation, _godot_object, propagation); 210 } 211 /** 212 213 */ 214 double getPropagation() const 215 { 216 checkClassBinding!(typeof(this))(); 217 return ptrcall!(double)(_classBinding.getPropagation, _godot_object); 218 } 219 /** 220 221 */ 222 void setInterior(in bool interior) 223 { 224 checkClassBinding!(typeof(this))(); 225 ptrcall!(void)(_classBinding.setInterior, _godot_object, interior); 226 } 227 /** 228 229 */ 230 bool isInterior() const 231 { 232 checkClassBinding!(typeof(this))(); 233 return ptrcall!(bool)(_classBinding.isInterior, _godot_object); 234 } 235 /** 236 237 */ 238 void setCompress(in bool compress) 239 { 240 checkClassBinding!(typeof(this))(); 241 ptrcall!(void)(_classBinding.setCompress, _godot_object, compress); 242 } 243 /** 244 245 */ 246 bool isCompressed() const 247 { 248 checkClassBinding!(typeof(this))(); 249 return ptrcall!(bool)(_classBinding.isCompressed, _godot_object); 250 } 251 /** 252 253 */ 254 @property AABB bounds() 255 { 256 return getBounds(); 257 } 258 /// ditto 259 @property void bounds(AABB v) 260 { 261 setBounds(v); 262 } 263 /** 264 265 */ 266 @property double cellSize() 267 { 268 return getCellSize(); 269 } 270 /// ditto 271 @property void cellSize(double v) 272 { 273 setCellSize(v); 274 } 275 /** 276 277 */ 278 @property Transform toCellXform() 279 { 280 return getToCellXform(); 281 } 282 /// ditto 283 @property void toCellXform(Transform v) 284 { 285 setToCellXform(v); 286 } 287 /** 288 289 */ 290 @property PoolIntArray dynamicData() 291 { 292 return getDynamicData(); 293 } 294 /// ditto 295 @property void dynamicData(PoolIntArray v) 296 { 297 setDynamicData(v); 298 } 299 /** 300 301 */ 302 @property long dynamicRange() 303 { 304 return getDynamicRange(); 305 } 306 /// ditto 307 @property void dynamicRange(long v) 308 { 309 setDynamicRange(v); 310 } 311 /** 312 313 */ 314 @property double energy() 315 { 316 return getEnergy(); 317 } 318 /// ditto 319 @property void energy(double v) 320 { 321 setEnergy(v); 322 } 323 /** 324 325 */ 326 @property double bias() 327 { 328 return getBias(); 329 } 330 /// ditto 331 @property void bias(double v) 332 { 333 setBias(v); 334 } 335 /** 336 337 */ 338 @property double normalBias() 339 { 340 return getNormalBias(); 341 } 342 /// ditto 343 @property void normalBias(double v) 344 { 345 setNormalBias(v); 346 } 347 /** 348 349 */ 350 @property double propagation() 351 { 352 return getPropagation(); 353 } 354 /// ditto 355 @property void propagation(double v) 356 { 357 setPropagation(v); 358 } 359 /** 360 361 */ 362 @property bool interior() 363 { 364 return isInterior(); 365 } 366 /// ditto 367 @property void interior(bool v) 368 { 369 setInterior(v); 370 } 371 /** 372 373 */ 374 @property bool compress() 375 { 376 return isCompressed(); 377 } 378 /// ditto 379 @property void compress(bool v) 380 { 381 setCompress(v); 382 } 383 }