All Downloads are FREE. Search and download functionalities are using the official Maven repository.

godot.entrygenerator.generator.hintstring.PropertyHintStringGenerator.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0-4.3.0
Show newest version
package godot.entrygenerator.generator.hintstring

import godot.entrygenerator.model.PropertyHintAnnotation
import godot.entrygenerator.model.RegisteredProperty

abstract class PropertyHintStringGenerator (
    val registeredProperty: RegisteredProperty
) {
    @Suppress("UNCHECKED_CAST")
    protected val propertyHintAnnotation = registeredProperty
        .annotations
        .firstOrNull { it is PropertyHintAnnotation } as PROPERTY_HINT_ANNOTATION_TYPE?

    /**
     * Hint string formatting: https://github.com/godotengine/godot/blob/dcd11faad3802679a43b27155f1b6bc59aa39b60/core/object.h
     */
    abstract fun getHintString(): String
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy