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

◆ SyncEventToRemote()

void Weapon::SyncEventToRemote ( WeaponEventBase e)
inlineprotected

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

1216 {
1217 DayZPlayer p = DayZPlayer.Cast(GetHierarchyParent());
1218 if (p && p.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
1219 {
1220 ScriptRemoteInputUserData ctx = new ScriptRemoteInputUserData();
1221
1223 e.WriteToContext(ctx);
1224
1225 if (LogManager.IsWeaponLogEnable())
1226 wpnDebugPrint("[wpnfsm] " + Object.GetDebugName(this) + " send 2 remote: sending e=" + e + " id=" + e.GetEventID() + " p=" + e.m_player + " m=" + e.m_magazine);
1227
1228 p.StoreInputForRemotes(ctx);
1229 }
1230 }
const int INPUT_UDT_WEAPON_REMOTE_EVENT
Определения _constants.c:12
void wpnDebugPrint(string s)
Определения Debug.c:9
proto bool Write(void value_out)
Magazine m_magazine
Определения Events.c:38
void WriteToContext(ParamsWriteContext ctx)
Определения Events.c:54
DayZPlayer m_player
Определения Events.c:37
WeaponEventID GetEventID()
returns id from enum WeaponEventID
Определения Events.c:42
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
class LOD Object

Перекрестные ссылки WeaponEventBase::GetEventID(), INPUT_UDT_WEAPON_REMOTE_EVENT, LogManager::IsWeaponLogEnable(), WeaponEventBase::m_magazine, WeaponEventBase::m_player, wpnDebugPrint(), Serializer::Write() и WeaponEventBase::WriteToContext().

Используется в ProcessWeaponAbortEvent() и ProcessWeaponEvent().