10-30-2022, 02:34 AM
No it can't as they're two unrelated properties: Layer.palette is an optional property that can be NULL -and by default is-, whereas Tileset.palette is mandatory and belongs to the Tileset, not the Layer. Each one must be managed by its own accessor.
Tileset lacks accesor to set it in purpose, it can only be set during creation and then remains constant, it can't be changed. Your proposed setter function would work in the short term, but it would cause the leaking/orphaning problems of broken references I talked about in last post. That's by it doesn't exist.
Tileset lacks accesor to set it in purpose, it can only be set during creation and then remains constant, it can't be changed. Your proposed setter function would work in the short term, but it would cause the leaking/orphaning problems of broken references I talked about in last post. That's by it doesn't exist.