MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setShapeName

Method setShapeName

Engine/source/T3D/shapeBase.cpp:3637–3653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3635//--------------------------------------------------------------------------
3636
3637void ShapeBase::setShapeName(const char* name)
3638{
3639 if (!isGhost()) {
3640 if (name[0] != '\0') {
3641 // Use tags for better network performance
3642 // Should be a tag, but we'll convert to one if it isn't.
3643 if (name[0] == StringTagPrefixByte)
3644 mShapeNameHandle = NetStringHandle(U32(dAtoi(name + 1)));
3645 else
3646 mShapeNameHandle = NetStringHandle(name);
3647 }
3648 else {
3649 mShapeNameHandle = NetStringHandle();
3650 }
3651 setMaskBits(NameMask);
3652 }
3653}
3654
3655void ShapeBase::setSkinName(const char* name)
3656{

Callers 1

shapeBase.cppFile · 0.80

Calls 3

NetStringHandleClass · 0.85
dAtoiFunction · 0.85
U32Enum · 0.50

Tested by

no test coverage detected