What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

HB3 - WoWPoint -> Vector3 AutoReplacement for VS

@alisha

Well-Known Member
Joined
Sep 29, 2012
Messages
4,063
Reaction score
21
For those lazy people as me :p,

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-]+))\)
Replace with:
PHP:
new Vector3($2f,$3f,$4f)

Do not forget to check regex replacement:
attachment.php
 

Attachments

  • 2016-09-01_005712.webp
    2016-09-01_005712.webp
    5.8 KB · Views: 65
Decent share - might come in handy for a few people of us. Thanks!
 
Back
Top