2022-10-21 12:53:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
path=$1
|
|
|
|
|
|
|
|
sed -i "s/std::string_view/const rstl::string\&/g" "$path"
|
2022-10-21 14:51:59 +00:00
|
|
|
sed -i "s/std::optional/rstl::optional_object/g" "$path"
|
2022-10-21 15:13:34 +00:00
|
|
|
sed -i "s/std::nullopt/rstl::optional_object_null()/g" "$path"
|
2022-10-21 12:53:04 +00:00
|
|
|
sed -i "s/zeus::CTransform/CTransform4f/g" "$path"
|
2022-10-21 14:28:54 +00:00
|
|
|
sed -i "s/zeus::skZero2f/CVector2f(0.f, 0.f)/g" "$path"
|
|
|
|
sed -i "s/zeus::skZero3f/CVector3f::Zero()/g" "$path"
|
2022-10-21 13:48:25 +00:00
|
|
|
sed -i "s/zeus::skPurple/CColor::Purple()/g" "$path"
|
|
|
|
sed -i "s/zeus::skWhite/CColor::White()/g" "$path"
|
2022-10-21 14:51:59 +00:00
|
|
|
sed -i "s/zeus::CFrustum/CFrustumPlanes/g" "$path"
|
2022-10-21 12:53:04 +00:00
|
|
|
sed -i "s/zeus:://g" "$path"
|
2022-10-21 14:51:59 +00:00
|
|
|
sed -i "s/DEFINE_ENTITY//g" "$path"
|
2022-10-21 12:53:04 +00:00
|
|
|
sed -i "s/visitor.Visit(this)/visitor.Visit(*this)/g" "$path"
|