MCPcopy Create free account
hub / github.com/Norbyte/ositools / RegisterHitFunctions

Method RegisterHitFunctions

OsiInterface/Functions/DamageFunctions.cpp:703–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701 }
702
703 void CustomFunctionLibrary::RegisterHitFunctions()
704 {
705 auto & functionMgr = osiris_.GetCustomFunctionManager();
706
707 auto hitPrepare = std::make_unique<CustomQuery>(
708 "NRD_HitPrepare",
709 std::vector<CustomFunctionParam>{
710 { "Target", ValueType::GuidString, FunctionArgumentDirection::In },
711 { "Source", ValueType::GuidString, FunctionArgumentDirection::In },
712 { "HitHandle", ValueType::Integer64, FunctionArgumentDirection::Out },
713 },
714 &func::HitPrepare
715 );
716 functionMgr.Register(std::move(hitPrepare));
717
718 auto hitExecute = std::make_unique<CustomCall>(
719 "NRD_HitExecute",
720 std::vector<CustomFunctionParam>{
721 { "HitHandle", ValueType::Integer64, FunctionArgumentDirection::In }
722 },
723 &func::HitExecute
724 );
725 functionMgr.Register(std::move(hitExecute));
726
727 auto hitExecuteEx = std::make_unique<CustomQuery>(
728 "NRD_HitQryExecute",
729 std::vector<CustomFunctionParam>{
730 { "HitHandle", ValueType::Integer64, FunctionArgumentDirection::In },
731 { "StatusHandle", ValueType::Integer64, FunctionArgumentDirection::Out }
732 },
733 &func::HitExecuteRetStatus
734 );
735 functionMgr.Register(std::move(hitExecuteEx));
736
737 auto hitGetInt = std::make_unique<CustomQuery>(
738 "NRD_HitGetInt",
739 std::vector<CustomFunctionParam>{
740 { "HitHandle", ValueType::Integer64, FunctionArgumentDirection::In },
741 { "Property", ValueType::String, FunctionArgumentDirection::In },
742 { "Value", ValueType::Integer, FunctionArgumentDirection::Out }
743 },
744 &func::HitGetInt
745 );
746 functionMgr.Register(std::move(hitGetInt));
747
748 auto hitSetInt = std::make_unique<CustomCall>(
749 "NRD_HitSetInt",
750 std::vector<CustomFunctionParam>{
751 { "HitHandle", ValueType::Integer64, FunctionArgumentDirection::In },
752 { "Property", ValueType::String, FunctionArgumentDirection::In },
753 { "Value", ValueType::Integer, FunctionArgumentDirection::In }
754 },
755 &func::HitSetInt
756 );
757 functionMgr.Register(std::move(hitSetInt));
758
759 auto hitGetString = std::make_unique<CustomQuery>(
760 "NRD_HitGetString",

Callers

nothing calls this directly

Calls 1

RegisterMethod · 0.45

Tested by

no test coverage detected