Some common functions

This commit is contained in:
barsdeveloper
2023-05-06 23:38:14 +02:00
parent a80bf61c88
commit c3d94f8cde
6 changed files with 143 additions and 4 deletions

View File

@@ -578,6 +578,14 @@ export default class ObjectEntity extends IEntity {
if (input.length > 0) {
return input.map(v => Utility.printExponential(v)).reduce((acc, cur) => acc + "," + cur)
}
case Configuration.paths.materialExpressionLogarithm:
return "Ln"
case Configuration.paths.materialExpressionLogarithm10:
return "Log10"
case Configuration.paths.materialExpressionLogarithm2:
return "Log2"
case Configuration.paths.materialExpressionSquareRoot:
return "Sqrt"
case Configuration.paths.spawnActorFromClass:
return `SpawnActor ${Utility.formatStringName(
this.getCustomproperties().find(pinEntity => pinEntity.getType() == "class")?.DefaultObject?.getName()