@alisha
Well-Known Member
- Joined
- Sep 29, 2012
- Messages
- 4,063
- Reaction score
- 21
For those lazy people as me
,
Who need to replace bunch of WoWPoint hard-coded values to Vector3 and do not want to manually change double to float variables (adding f at the end),
here is regex auto-replacement code for Visual Studio
Find what:
Replace with:
Do not forget to check regex replacement:

Who need to replace bunch of WoWPoint hard-coded values to Vector3 and do not want to manually change double to float variables (adding f at the end),
here is regex auto-replacement code for Visual Studio
Find what:
PHP:
(new WoWPoint\(([.0-9-]+),[\s-]*([.0-9-]+),[\s-]*([.0-9-]+))\)
PHP:
new Vector3($2f,$3f,$4f)
Do not forget to check regex replacement: