MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / Component

Method Component

Engine/source/T3D/components/component.cpp:43–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41//////////////////////////////////////////////////////////////////////////
42
43Component::Component()
44{
45 mFriendlyName = StringTable->lookup("");
46 mFromResource = StringTable->lookup("");
47 mComponentType = StringTable->lookup("");
48 mComponentGroup = StringTable->lookup("");
49 mNetworkType = StringTable->lookup("");
50 mTemplateName = StringTable->lookup("");
51 //mDependency = StringTable->lookup("");
52
53 mNetworked = false;
54
55
56 // [tom, 1/12/2007] We manage the memory for the description since it
57 // could be loaded from a file and thus massive. This is accomplished with
58 // protected fields, but since they still call Con::getData() the field
59 // needs to always be valid. This is pretty lame.
60 mDescription = new char[1];
61 ((char *)mDescription)[0] = 0;
62
63 mOwner = NULL;
64
65 mCanSaveFieldDictionary = false;
66
67 mNetFlags.set(Ghostable);
68}
69
70Component::~Component()
71{

Callers

nothing calls this directly

Calls 2

lookupMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected