Material: Convert XML bindings to Python.

This commit is contained in:
Joao Matos
2025-03-24 19:06:26 +00:00
committed by Benjamin Nauck
parent 35420022e9
commit 4ec136b252
18 changed files with 858 additions and 9 deletions

View File

@@ -0,0 +1,32 @@
from Base.Metadata import export, constmethod
from Base.BaseClass import BaseClass
from typing import Final
@export(
Include="Mod/Material/App/MaterialLibrary.h",
Namespace="Materials",
Constructor=True,
Delete=True,
)
class MaterialLibrary(BaseClass):
"""
Material library.
Author: DavidCarter (dcarter@davidcarter.ca)
Licence: LGPL
"""
Name: str = ...
"""Name of the library"""
Icon: str = ...
"""String value of the icon."""
Directory: str = ...
"""Local directory where the library is located. For non-local libraries this will be empty"""
ReadOnly: bool = ...
"""True if the library is local."""
Local: bool = ...
"""True if the library is local."""