| 64 | } |
| 65 | |
| 66 | void Structs::SDK_OnAllLoaded() |
| 67 | { |
| 68 | g_StructHandle = handlesys->CreateType("Struct", |
| 69 | &g_StructHandler, |
| 70 | 0, |
| 71 | NULL, |
| 72 | NULL, |
| 73 | myself->GetIdentity(), |
| 74 | NULL); |
| 75 | |
| 76 | gameconfs->AddUserConfigHook("Structs", this); |
| 77 | |
| 78 | sharesys->AddNatives(myself, MyNatives); |
| 79 | |
| 80 | |
| 81 | char error[100]; |
| 82 | if (!gameconfs->LoadGameConfigFile("structs.gamedata", &conf, error, sizeof(error))) |
| 83 | { |
| 84 | g_pSM->LogError(myself, "Parsing Failed!"); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | void Structs::SDK_OnUnload() |
| 89 | { |
nothing calls this directly
no test coverage detected