| 41 | ////////////////////////////////////////////////////////////////////////// |
| 42 | |
| 43 | Component::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 | |
| 70 | Component::~Component() |
| 71 | { |