File size: 786 Bytes
985c397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-License-Identifier: LGPL-2.1-or-later

from __future__ import annotations

from Base.Metadata import export
from Base.BaseClass import BaseClass


@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: bytes = ...
    """Icon as an array of bytes."""

    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."""