completed animation setup and code based solely on LDTK settings
This commit is contained in:
@@ -54,6 +54,15 @@ func GetPropertyBool(entity *ldtkgo.Entity, property string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func GetPropertyEnum(entity *ldtkgo.Entity, property string) string {
|
||||
ref := entity.PropertyByIdentifier(property)
|
||||
if ref != nil {
|
||||
return ref.AsString()
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
func GetPropertyToggleTile(entity *ldtkgo.Entity) *TileSetSubRect {
|
||||
ref := entity.PropertyByIdentifier(config.LDTK_Toggle_Tile)
|
||||
if ref != nil {
|
||||
|
||||
Reference in New Issue
Block a user