| 1172 | } |
| 1173 | |
| 1174 | uint32_t GenerateUniqueScriptId() |
| 1175 | { |
| 1176 | static uint32_t counter = 0; |
| 1177 | |
| 1178 | if (counter == INVALID_SCRIPT_ID - 1) |
| 1179 | { |
| 1180 | counter = 0; |
| 1181 | } |
| 1182 | else |
| 1183 | { |
| 1184 | ++counter; |
| 1185 | } |
| 1186 | |
| 1187 | return counter; |
| 1188 | } |
| 1189 | |
| 1190 | HScriptWorld NewScriptWorld(HContext context) |
| 1191 | { |
no outgoing calls