<s> from enum import IntEnum <EOL> from . component import Component <EOL> from . object import Object , field <EOL> class FontStyle ( IntEnum ) : <EOL> Normal = <NUM_LIT:0> <EOL> Bold = <NUM_LIT:1> <EOL> Italic = <NUM_LIT:2> <EOL> BoldAndItalic = <NUM_LIT:3> <EOL> class TextAlignment ( IntEnum ) : <EOL> Left = <NUM_LIT:0> <EOL> Center = <NUM_LIT:1> <EOL> Right = <NUM_LIT:2> <EOL> class TextAnchor ( IntEnum ) : <EOL> UpperLeft = <NUM_LIT:0> <EOL> UpperCenter = <NUM_LIT:1> <EOL> UpperRight = <NUM_LIT:2> <EOL> MiddleLeft = <NUM_LIT:3> <EOL> MiddleCenter = <NUM_LIT:4> <EOL> MiddleRight = <NUM_LIT:5> <EOL> LowerLeft = <NUM_LIT:6> <EOL> LowerCenter = <NUM_LIT:7> <EOL> LoweRight = <NUM_LIT:8> <EOL> class TextMesh ( Component ) : <EOL> alignment = field ( "<STR_LIT>" , TextAlignment ) <EOL> anchor = field ( "<STR_LIT>" , TextAnchor ) <EOL> character_size = field ( "<STR_LIT>" ) <EOL> color = field ( "<STR_LIT>" ) <EOL> font_size = field ( "<STR_LIT>" ) <EOL> font = field ( "<STR_LIT>" ) <EOL> font_style = field ( "<STR_LIT>" , FontStyle ) <EOL> line_spacing = field ( "<STR_LIT>" ) <EOL> offset_z = field ( "<STR_LIT>" ) <EOL> rich_text = field ( "<STR_LIT>" , bool ) <EOL> tab_size = field ( "<STR_LIT>" ) <EOL> text = field ( "<STR_LIT>" ) <EOL> def __str__ ( self ) : <EOL> return self . text <EOL> class TextAsset ( Object ) : <EOL> path = field ( "<STR_LIT>" ) <EOL> script = field ( "<STR_LIT>" ) <EOL> @ property <EOL> def bytes ( self ) : <EOL> return self . script <EOL> @ property <EOL> def text ( self ) : <EOL> return self . bytes . decode ( "<STR_LIT:utf-8>" ) <EOL> class Shader ( Object ) : <EOL> dependencies = field ( "<STR_LIT>" ) <EOL> script = field ( "<STR_LIT>" ) </s>
