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

Method SetString

OsiInterface/Functions/FunctionUtilities.cpp:294–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292 }
293
294 void ShootProjectileApiHelper::SetString(char const * prop, char const * value)
295 {
296 auto fs = ToFixedString(value);
297 if (!fs) {
298 OsiError("Could not map value '" << value << "' to FixedString");
299 return;
300 }
301
302 if (strcmp(prop, "SkillId") == 0) {
303 Helper.SkillId = fs;
304 }
305 else if (strcmp(prop, "FS2") == 0) {
306 Helper.FS2 = fs;
307 }
308 else {
309 OsiError("Unknown string property '" << prop << "'");
310 }
311 }
312
313 bool ShootProjectileApiHelper::Shoot()
314 {

Callers

nothing calls this directly

Calls 1

ToFixedStringFunction · 0.85

Tested by

no test coverage detected