9551-Dev / C3D

Advanced 3D renderer for the Computercraft minecraft mod
https://c3d.madefor.cc
MIT License
24 stars 1 forks source link

generic_shape cast interactions #37

Closed 9551-Dev closed 1 year ago

9551-Dev commented 1 year ago

added a :cast function which calls cast_generic_shape_layout on the layout provided into the function, lastly saving the result of that call as self.casted to be used by the pipeline

added a default cast to the generic_shape constructor newly constructed generic_shape objects automatically cast themselves to the default pipeline accessed by

BUS.pipe.default:get_layout()