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

Method SetVector

OsiInterface/Functions/FunctionUtilities.cpp:279–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 void ShootProjectileApiHelper::SetVector(char const * prop, glm::vec3 const & value)
280 {
281 if (strcmp(prop, "SourcePosition") == 0) {
282 Helper.StartPosition = value;
283 HasStartPosition = true;
284 }
285 else if (strcmp(prop, "TargetPosition") == 0) {
286 Helper.EndPosition = value;
287 HasEndPosition = true;
288 }
289 else {
290 OsiError("Unknown vector3 property '" << prop << "'");
291 }
292 }
293
294 void ShootProjectileApiHelper::SetString(char const * prop, char const * value)
295 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected