[closed] surface.type
Posted: Mon Aug 29, 2016 11:56 pm
Currently there's no way for a mod to know what a surface represents, with the exception of Nauvis.
For example, there are mods out there that have factory surfaces, underground surfaces, even surfaces inside trains or in the sky. It's likely we'll get other planet surfaces at some point, as well as asteroids, and probably all kinds of other crazy stuff in the coming years.
Would it be possible to add a surface.type :: string (R) to help describe or categorise surfaces in an open-ended manner?
Initial surface types could be:
* 'terrain' (eg. a planet surface, like Nauvis, or an asteroid surface)
* 'building' (eg. factorissimo)
* 'underground' (eg. for caves, etc)
Mods that implement surfaces could choose from a list of recommended types, but could also add their own if substantially different.
This would allow other mods to determine if a surface is applicable home to entities they define, or swap placed entities to more applicable entities for the kind of surface. For example, some entities might only work outdoors (terrain surfaces); or if placed indoors (building surfaces) may require a different entity graphics, etc.
This would make it much easier for other mods to get some idea about the nature of a surface. The only other option is to try and keep track of all the mods that implement custom surfaces and find a way to categorise them based on surface names or some other aspect of a surface.
For example, there are mods out there that have factory surfaces, underground surfaces, even surfaces inside trains or in the sky. It's likely we'll get other planet surfaces at some point, as well as asteroids, and probably all kinds of other crazy stuff in the coming years.
Would it be possible to add a surface.type :: string (R) to help describe or categorise surfaces in an open-ended manner?
Initial surface types could be:
* 'terrain' (eg. a planet surface, like Nauvis, or an asteroid surface)
* 'building' (eg. factorissimo)
* 'underground' (eg. for caves, etc)
Mods that implement surfaces could choose from a list of recommended types, but could also add their own if substantially different.
This would allow other mods to determine if a surface is applicable home to entities they define, or swap placed entities to more applicable entities for the kind of surface. For example, some entities might only work outdoors (terrain surfaces); or if placed indoors (building surfaces) may require a different entity graphics, etc.
This would make it much easier for other mods to get some idea about the nature of a surface. The only other option is to try and keep track of all the mods that implement custom surfaces and find a way to categorise them based on surface names or some other aspect of a surface.