from UE4Parse.BinaryReader import BinaryStream
from UE4Parse.Objects.FText import FText


class TextProperty:
    position: int
    Value = None

    def __init__(self, reader: BinaryStream) -> None:
        self.position = reader.base_stream.tell()
        self.Value = FText(reader)

    def GetValue(self):
        return self.Value.GetValue()
