@@ -168,6 +168,7 @@ void CLuaMain::AddElementClass ( lua_State* luaVM )
168
168
lua_classfunction ( luaVM, " isCallPropagationEnabled" , " isElementCallPropagationEnabled" );
169
169
lua_classfunction ( luaVM, " isWaitingForGroundToLoad" , " isElementWaitingForGroundToLoad" );
170
170
lua_classfunction ( luaVM, " isOnScreen" , " isElementOnScreen" );
171
+ lua_classfunction ( luaVM, " isStreamedIn" , " isElementStreamedIn" );
171
172
lua_classfunction ( luaVM, " isStreamable" , " isElementStreamable" );
172
173
lua_classfunction ( luaVM, " isLocal" , " isElementLocal" );
173
174
lua_classfunction ( luaVM, " isSyncer" , " isElementSyncer" );
@@ -222,6 +223,7 @@ void CLuaMain::AddElementClass ( lua_State* luaVM )
222
223
lua_classvariable ( luaVM, " callPropagationEnabled" , " setElementCallPropagationEnabled" , " isElementCallPropagationEnabled" );
223
224
lua_classvariable ( luaVM, " waitingForGroundToLoad" , NULL , " isElementWaitingForGroundToLoad" );
224
225
lua_classvariable ( luaVM, " onScreen" , NULL , " isElementOnScreen" );
226
+ lua_classvariable ( luaVM, " streamedIn" , NULL , " isElementStreamedIn" );
225
227
lua_classvariable ( luaVM, " streamable" , " setElementStreamable" , " isElementStreamable" );
226
228
lua_classvariable ( luaVM, " localElement" , NULL , " isElementLocal" );
227
229
lua_classvariable ( luaVM, " id" , " setElementID" , " getElementID" );
@@ -2012,8 +2014,8 @@ bool CLuaMain::LoadScriptFromBuffer ( const char* cpInBuffer, unsigned int uiInS
2012
2014
g_pClientGame->TellServerSomethingImportant ( 1003 , SStringX ( " CLIENT SCRIPT ERROR: " ) + strMessage, false );
2013
2015
return false ;
2014
2016
}
2015
-
2016
- bool bUTF8 = CLuaShared::CheckUTF8BOMAndUpdate ( &cpBuffer, &uiSize );
2017
+
2018
+ bool bUTF8 = CLuaShared::CheckUTF8BOMAndUpdate ( &cpBuffer, &uiSize );
2017
2019
2018
2020
// If compiled script, make sure correct chunkname is embedded
2019
2021
CLuaShared::EmbedChunkName ( strNiceFilename, &cpBuffer, &uiSize );
0 commit comments