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

Method setSkinName

Engine/source/T3D/shapeBase.cpp:3655–3670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3653}
3654
3655void ShapeBase::setSkinName(const char* name)
3656{
3657 if (!isGhost()) {
3658 if (name[0] != '\0') {
3659 // Use tags for better network performance
3660 // Should be a tag, but we'll convert to one if it isn't.
3661 if (name[0] == StringTagPrefixByte)
3662 mSkinNameHandle = NetStringHandle(U32(dAtoi(name + 1)));
3663 else
3664 mSkinNameHandle = NetStringHandle(name);
3665 }
3666 else
3667 mSkinNameHandle = NetStringHandle();
3668 setMaskBits(SkinMask);
3669 }
3670}
3671
3672//----------------------------------------------------------------------------
3673

Callers 2

_setFieldSkinMethod · 0.45
shapeBase.cppFile · 0.45

Calls 3

NetStringHandleClass · 0.85
dAtoiFunction · 0.85
U32Enum · 0.50

Tested by

no test coverage detected