DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateNetworkObjectInfo()

void ReplaceItemWithNewLambdaBase::CreateNetworkObjectInfo ( EntityAI new_item)
inlineprotected

Step G. - create NetworkObjectInfo for new item.

@NOTE: new_item can be null if the lambda did not create any item (intentionaly)

См. определение в файле ReplaceItemWithNewLambdaBase.c строка 204

205 {
206 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[inv] ReplaceItemWithNewLambdaBase Step G) CreateNetworkObjectInfo =" + new_item);
207 if (new_item)
208 GetGame().RemoteObjectTreeCreate(new_item); // G) this forces server to send CreateVehicle Message to client. This is needed for preserving the appearance of network operations on client (so that DeleteObject(old) arrives before CreateVehicle(new)). @NOTE: this does not delete the object on server, only it's network representation.
209 }
void hndDebugPrint(string s)
Определения HandFSM.c:1
proto native void RemoteObjectTreeCreate(Object obj)
RemoteObjectCreate - postponed registration of network object (and creation of remote object)....
proto native CGame GetGame()

Перекрестные ссылки GetGame(), hndDebugPrint(), LogManager::IsInventoryHFSMLogEnable() и CGame::RemoteObjectTreeCreate().

Используется в Execute().