diff --git a/Transpiler.md b/Transpiler.md index 8e2e7b0..ae674ff 100644 --- a/Transpiler.md +++ b/Transpiler.md @@ -4,8 +4,7 @@ Features - Convert GDScript Enum Types `Node.ProcessModeEnum` to `Node.ProcessMode` - Convert GDScript Enum Values `Node.ProcessModeEnum.Disabled` to `Node.PROCESS_MODE_DISABLED` - Convert Godot.GD functions to global functions `GD.print` to `print` -- Convert Godot.Mathf functions to global functions `Mathf.max` to `max` -- Convert Godot.Mathf XXXtoInt to XXX `Mathf.RoundToInt` to `round` + ### **GD Script Injection** @@ -24,9 +23,14 @@ Features - HashSet => Dictionary[K,true] -### **C# Math** +### **Math** - float.MaxValue converted to value +- `float.IsInfinity` to `is_inf` +- `float.IsNaN` to `is_nan` - Converting modulo `a % b` to func `fmod( a, b )` +- Convert Godot.Mathf functions to global functions `Mathf.max` to `max` +- Convert Godot.Mathf XXXtoInt to XXX `Mathf.RoundToInt` to `round` + ### **Generics** - Prepend/append type as parameter for per class, for all methods