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

Abstracted event, not to be used, only inherited. Подробнее...

Закрытые члены

void HandEventTake (Man p=null, InventoryLocation src=null)
 
override InventoryLocation GetDst ()
 
override bool CheckRequestSrc ()
 
override bool CheckRequest ()
 
override bool CanPerformEventEx (InventoryValidation validation)
 
override bool AcquireInventoryJunctureFromServer (notnull Man player)
 
void HandEventMoveTo (Man p=null, InventoryLocation src=null, InventoryLocation dst=null)
 destination for item in hands
 
override void ReadFromContext (ParamsReadContext ctx)
 
override void WriteToContext (ParamsWriteContext ctx)
 
override InventoryLocation GetDst ()
 
override bool CheckRequestSrc ()
 
override bool CheckRequest ()
 
override bool CanPerformEvent ()
 
override bool AcquireInventoryJunctureFromServer (notnull Man player)
 
override string DumpToString ()
 
override InventoryLocation GetDst ()
 
override bool CheckRequestSrc ()
 
override bool CheckRequest ()
 
override bool CanPerformEvent ()
 
override bool AcquireInventoryJunctureFromServer (notnull Man player)
 
void HandEventSwap (Man p=null, InventoryLocation src=null, InventoryLocation src2=null, InventoryLocation dst=null, InventoryLocation dst2=null)
 
override void ReadFromContext (ParamsReadContext ctx)
 
override void WriteToContext (ParamsWriteContext ctx)
 
override InventoryLocation GetDst ()
 
override EntityAI GetSecondSrcEntity ()
 
override bool CheckRequestSrc ()
 
override bool CheckRequest ()
 
override bool CanPerformEvent ()
 
override bool AcquireInventoryJunctureFromServer (notnull Man player)
 
override string DumpToString ()
 
void CheckAndExecuteForceStandUp ()
 
override bool ReserveInventory ()
 
override void ClearInventoryReservation ()
 
void HandEventDestroy (Man p=null, InventoryLocation src=null)
 
override bool IsServerSideOnly ()
 
void HandEventCreated (Man p=null, InventoryLocation src=null)
 
void HandEventDestroyed (Man p=null, InventoryLocation src=null)
 
void HandEvengReplaceWithNewBase (Man p=null, InventoryLocation src=null, ReplaceItemWithNewLambdaBase lambda=NULL)
 
override void ReadFromContext (ParamsReadContext ctx)
 
override void WriteToContext (ParamsWriteContext ctx)
 
override bool IsServerSideOnly ()
 
override InventoryLocation GetDst ()
 
override string DumpToString ()
 
void HandEventReplaced (Man p=null, InventoryLocation src=null)
 
void HandAnimEventChanged (Man p=null, InventoryLocation src=null)
 
void HandEventHumanCommandActionFinished (Man p=null, InventoryLocation src=null)
 
void HandEventHumanCommandActionAborted (Man p=null, InventoryLocation src=null)
 

Закрытые данные

ref InventoryLocation m_Dst
 
ref InventoryLocation m_Src2
 destination for new item (i.e. hands)
 
ref InventoryLocation m_Dst2
 src of old item in hands
 
int m_Animation2ID = -1
 destination for old item that was in hands
 
string m_Type
 
ref ReplaceItemWithNewLambdaBase m_Lambda
 

Подробное описание

Abstracted event, not to be used, only inherited.

represents event that triggers transition from state to state

triggered when animation action aborts

triggered when animation action finishes

Методы

◆ AcquireInventoryJunctureFromServer() [1/4]

override bool AcquireInventoryJunctureFromServer ( notnull Man player)
inlineprivate
258 {
261 if (src && dst)
262 {
264 }
265 Error("[hndfsm] HandEventTake. AcquireInventoryJunctureFromServer: no src or dst for ev=" + DumpToString());
266 return JunctureRequestResult.ERROR;
267 }
InventoryLocation GetSrc()
Definition Hand_Events.c:80
JunctureRequestResult
Definition Hand_Events.c:28
bool TryAcquireInventoryJunctureFromServer(notnull Man player, notnull InventoryLocation src, notnull InventoryLocation dst)
Definition Junctures.c:2
override string DumpToString()
Definition Hand_Events.c:332
override InventoryLocation GetDst()
Definition Hand_Events.c:212
InventoryLocation.
Definition InventoryLocation.c:29
Definition EntityAI.c:95
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90

Перекрестные ссылки DumpToString(), Error(), GetDst(), GetSrc() и TryAcquireInventoryJunctureFromServer().

◆ AcquireInventoryJunctureFromServer() [2/4]

override bool AcquireInventoryJunctureFromServer ( notnull Man player)
inlineprivate
321 {
324 if (src && dst)
325 {
327 }
328 Error("[hndfsm] HandEventMoveTo. AcquireInventoryJunctureFromServer: no src or dst for ev=" + DumpToString());
329 return JunctureRequestResult.ERROR;
330 }

Перекрестные ссылки DumpToString(), Error(), GetDst(), GetSrc() и TryAcquireInventoryJunctureFromServer().

◆ AcquireInventoryJunctureFromServer() [3/4]

override bool AcquireInventoryJunctureFromServer ( notnull Man player)
inlineprivate
383 {
386 if (src && dst)
387 {
389 }
390 Error("[hndfsm] HandEventThrow. AcquireInventoryJunctureFromServer: no src or dst for ev=" + DumpToString());
391 return JunctureRequestResult.ERROR;
392 }

Перекрестные ссылки DumpToString(), Error(), GetDst(), GetSrc() и TryAcquireInventoryJunctureFromServer().

◆ AcquireInventoryJunctureFromServer() [4/4]

override bool AcquireInventoryJunctureFromServer ( notnull Man player)
inlineprivate
637 {
639 }
ref InventoryLocation m_Src
Definition Hand_Events.c:43
bool TryAcquireTwoInventoryJuncturesFromServer(notnull Man player, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)
Definition Junctures.c:35
ref InventoryLocation m_Dst
Definition Hand_Events.c:272
ref InventoryLocation m_Src2
destination for new item (i.e. hands)
Definition Hand_Events.c:533
ref InventoryLocation m_Dst2
src of old item in hands
Definition Hand_Events.c:534

Перекрестные ссылки m_Src и TryAcquireTwoInventoryJuncturesFromServer().

◆ CanPerformEvent() [1/3]

override bool CanPerformEvent ( )
inlineprivate
306 {
308 {
309 #ifdef ENABLE_LOGGING
311 {
312 Debug.InventoryHFSMLog("CANNOT perform", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CanPerformEvent", m_Player.ToString() );
313 }
314 #endif
315 return false;
316 }
317 return true;
318 }
DayZPlayer m_Player
Definition Hand_Events.c:42
HandEventID GetEventID()
Definition Hand_Events.c:53
HandEventID
events
Definition Hand_Events.c:7
Definition Debug.c:14
static void InventoryHFSMLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:161
script counterpart to engine's class Inventory
Definition Inventory.c:79
static proto native bool LocationCanMoveEntity(notnull InventoryLocation src, notnull InventoryLocation dst)
queries if the entity contained in inv_loc.m_item can be moved to another location This is a shorthan...
Definition Debug.c:600
static bool IsInventoryHFSMLogEnable()
Definition Debug.c:674

Перекрестные ссылки GetDst(), GetEventID(), GetSrc(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable(), GameInventory::LocationCanMoveEntity() и m_Player.

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

◆ CanPerformEvent() [2/3]

override bool CanPerformEvent ( )
inlineprivate
368 {
370 {
371 #ifdef ENABLE_LOGGING
373 {
374 Debug.InventoryHFSMLog("CANNOT perform", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CanPerformEvent", m_Player.ToString() );
375 }
376 #endif
377 return false;
378 }
379 return true;
380 }

Перекрестные ссылки GetDst(), GetEventID(), GetSrc(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable(), GameInventory::LocationCanMoveEntity() и m_Player.

◆ CanPerformEvent() [3/3]

override bool CanPerformEvent ( )
inlineprivate
623 {
625 return true;
626
627 #ifdef ENABLE_LOGGING
629 {
630 Debug.InventoryHFSMLog("CANNOT perform", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CanPerformEvent", m_Player.ToString() );
631 }
632 #endif
633 return false;
634 }
EntityAI GetItem()
Definition RadialQuickbarMenu.c:37
static bool CanForceSwapEntitiesEx(notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst)
Definition Inventory.c:664

Перекрестные ссылки GameInventory::CanForceSwapEntitiesEx(), GetEventID(), GetItem(), GetSrc(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и m_Player.

◆ CanPerformEventEx()

override bool CanPerformEventEx ( InventoryValidation validation)
inlineprivate
236 {
237 if (validation.m_IsJuncture)
238 {
239 return true;
240 }
241
243 {
244 #ifdef ENABLE_LOGGING
246 {
247 Debug.InventoryHFSMLog("CANNOT perform", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CanPerformEvent", m_Player.ToString() );
248 }
249 #endif
250 //if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[desync] HandleInputData man=" + Object.GetDebugName(m_Player) + " CANNOT perform ev=" + DumpToString());
251 return false;
252 }
253
254 return super.CanPerformEventEx(validation);
255 }

Перекрестные ссылки GetDst(), GetEventID(), GetSrc(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable(), GameInventory::LocationCanMoveEntity() и m_Player.

◆ CheckAndExecuteForceStandUp()

void CheckAndExecuteForceStandUp ( )
inlineprivate
647 {
649 player.ForceStandUpForHeavyItemsSwap( m_Src.GetItem(), m_Src2.GetItem() );
650 }
Definition DayZPlayerImplement.c:111

Перекрестные ссылки m_Player и m_Src.

◆ CheckRequest() [1/4]

override bool CheckRequest ( )
inlineprivate
231 {
233 }
const float c_MaxItemDistanceRadius
anti-cheats
Definition Inventory.c:813
static proto native bool CheckMoveToDstRequest(notnull Man requestingPlayer, notnull InventoryLocation src, notnull InventoryLocation dst, float radius)

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckMoveToDstRequest(), GetDst(), GetSrc() и m_Player.

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

◆ CheckRequest() [2/4]

◆ CheckRequest() [3/4]

◆ CheckRequest() [4/4]

override bool CheckRequest ( )
inlineprivate
597 {
599 {
600 #ifdef ENABLE_LOGGING
602 {
603 Debug.InventoryHFSMLog("CheckSwapItemsRequest - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
604 }
605 #endif
606 }
607 else if (!m_Player.GetHumanInventory().CanAddSwappedEntity(m_Src, m_Src2, m_Dst, m_Dst2))
608 {
609 #ifdef ENABLE_LOGGING
611 {
612 Debug.InventoryHFSMLog("CanAddSwappedEntity - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
613 }
614 #endif
615 }
616 else
617 return true;
618
619 return false;
620 }
static proto native bool CheckSwapItemsRequest(notnull Man requestingPlayer, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, float radius)

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckSwapItemsRequest(), GetEventID(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable(), m_Player и m_Src.

◆ CheckRequestSrc() [1/4]

override bool CheckRequestSrc ( )
inlineprivate
220 {
222 {
223 Debug.InventoryHFSMLog("CANNOT perform", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequestSrc", m_Player.ToString() );
224 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[cheat] HandleInputData man=" + Object.GetDebugName(m_Player) + " failed src1 check with cmd=" + typename.EnumToString(HandEventID, GetEventID()) + " src1=" + InventoryLocation.DumpToStringNullSafe(GetSrc()));
225 return false; // stale packet
226 }
227 return true;
228 }
void syncDebugPrint(string s)
Definition Debug.c:1
static proto native bool CheckRequestSrc(notnull Man requestingPlayer, notnull InventoryLocation src, float radius)
static string DumpToStringNullSafe(InventoryLocation loc)
Definition InventoryLocation.c:226
static bool IsSyncLogEnable()
Definition Debug.c:684
Definition ObjectTyped.c:2

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckRequestSrc(), InventoryLocation::DumpToStringNullSafe(), GetEventID(), GetSrc(), Debug::InventoryHFSMLog(), LogManager::IsSyncLogEnable(), m_Player и syncDebugPrint().

◆ CheckRequestSrc() [2/4]

override bool CheckRequestSrc ( )
inlineprivate
291 {
293 {
294 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[cheat] HandleInputData man=" + Object.GetDebugName(m_Player) + " failed src1 check with cmd=" + typename.EnumToString(HandEventID, GetEventID()) + " src1=" + InventoryLocation.DumpToStringNullSafe(GetSrc()));
295 return false; // stale packet
296 }
297 return true;
298 }

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckRequestSrc(), InventoryLocation::DumpToStringNullSafe(), GetEventID(), GetSrc(), LogManager::IsSyncLogEnable(), m_Player и syncDebugPrint().

◆ CheckRequestSrc() [3/4]

override bool CheckRequestSrc ( )
inlineprivate
348 {
350 {
351 #ifdef ENABLE_LOGGING
353 {
354 Debug.InventoryHFSMLog("Check src - failed, src = " + InventoryLocation.DumpToStringNullSafe(GetSrc()), typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequestSrc", m_Player.ToString() );
355 }
356 #endif
357 return false; // stale packet
358 }
359 return true;
360 }

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckRequestSrc(), InventoryLocation::DumpToStringNullSafe(), GetEventID(), GetSrc(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и m_Player.

◆ CheckRequestSrc() [4/4]

override bool CheckRequestSrc ( )
inlineprivate
580 {
581 //return false;
582
584 {
585 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[cheat] HandleInputData man=" + Object.GetDebugName(m_Player) + " failed src1 check with cmd=" + typename.EnumToString(HandEventID, GetEventID()) + " src1=" + InventoryLocation.DumpToStringNullSafe(GetSrc()));
586 return false; // stale packet
587 }
589 {
590 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[cheat] HandleInputData man=" + Object.GetDebugName(m_Player) + " failed src2 check with cmd=" + typename.EnumToString(HandEventID, GetEventID()) + " src2=" + InventoryLocation.DumpToStringNullSafe(m_Src2));
591 return false; // stale packet
592 }
593 return true;
594 }

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckRequestSrc(), InventoryLocation::DumpToStringNullSafe(), GetEventID(), GetSrc(), LogManager::IsSyncLogEnable(), m_Player и syncDebugPrint().

◆ ClearInventoryReservation()

override void ClearInventoryReservation ( )
inlineprivate
672 {
673 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
674 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst2.GetItem(), m_Dst2);
675 }

Перекрестные ссылки m_Player.

◆ DumpToString() [1/3]

override string DumpToString ( )
inlineprivate
333 {
334 string res = "{ HandEventMoveTo id=" + typename.EnumToString(HandEventID, GetEventID()) + " pl=" + Object.GetDebugName(m_Player) + " src=" + InventoryLocation.DumpToStringNullSafe(m_Src) + " dst=" + InventoryLocation.DumpToStringNullSafe(m_Dst) + " }";
335 return res;
336 }

Перекрестные ссылки InventoryLocation::DumpToStringNullSafe(), GetEventID(), m_Player и m_Src.

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

◆ DumpToString() [2/3]

override string DumpToString ( )
inlineprivate
642 {
643 return "{ HandEventSwap id=" + typename.EnumToString(HandEventID, GetEventID()) + " pl=" + Object.GetDebugName(m_Player) + " src1=" + InventoryLocation.DumpToStringNullSafe(m_Src) + " src2=" + InventoryLocation.DumpToStringNullSafe(m_Src2) + " dst1=" + InventoryLocation.DumpToStringNullSafe(m_Dst) + " dst2=" + InventoryLocation.DumpToStringNullSafe(m_Dst2) + " }";
644 }

Перекрестные ссылки InventoryLocation::DumpToStringNullSafe(), GetEventID(), m_Player и m_Src.

◆ DumpToString() [3/3]

override string DumpToString ( )
inlineprivate
761 {
762 string res = "{ HandEvenReplaceWithNewBase id=" + typename.EnumToString(HandEventID, GetEventID()) + " pl=" + Object.GetDebugName(m_Player) + " src=" + InventoryLocation.DumpToStringNullSafe(GetSrc()) + " lambda=" + m_Lambda + " dst=" + InventoryLocation.DumpToStringNullSafe(GetDst()) + " }";
763 return res;
764 }
ref ReplaceItemWithNewLambdaBase m_Lambda
Definition Hand_Events.c:734

Перекрестные ссылки InventoryLocation::DumpToStringNullSafe(), GetDst(), GetEventID(), GetSrc() и m_Player.

◆ GetDst() [1/5]

override InventoryLocation GetDst ( )
inlineprivate
213 {
215 dst.SetHands(m_Player, GetSrcEntity());
216 return dst;
217 }
EntityAI GetSrcEntity()
Definition Hand_Events.c:81

Перекрестные ссылки GetSrcEntity() и m_Player.

Используется в AcquireInventoryJunctureFromServer(), CanPerformEvent(), CanPerformEventEx(), CheckRequest(), ClearInventoryReservation() и ReserveInventory().

◆ GetDst() [2/5]

override InventoryLocation GetDst ( )
inlineprivate
288{ return m_Dst; }

Перекрестные ссылки m_Dst.

◆ GetDst() [3/5]

override InventoryLocation GetDst ( )
inlineprivate
343 {
344 return m_Dst;
345 }

◆ GetDst() [4/5]

override InventoryLocation GetDst ( )
inlineprivate
570 {
571 return m_Dst;
572 }

◆ GetDst() [5/5]

override InventoryLocation GetDst ( )
inlineprivate
754 {
756 dst.SetHands(m_Player, GetSrcEntity());
757 return dst;
758 }

Перекрестные ссылки GetSrcEntity() и m_Player.

◆ GetSecondSrcEntity()

override EntityAI GetSecondSrcEntity ( )
inlineprivate
575 {
576 return m_Src2.GetItem();
577 }

◆ HandAnimEventChanged()

void HandAnimEventChanged ( Man p = null,
InventoryLocation src = null )
inlineprivate
791{ m_EventID = HandEventID.ANIMEVENT_CHANGE_HIDE; }
m_EventID

Перекрестные ссылки m_EventID.

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

◆ HandEvengReplaceWithNewBase()

void HandEvengReplaceWithNewBase ( Man p = null,
InventoryLocation src = null,
ReplaceItemWithNewLambdaBase lambda = NULL )
inlineprivate
736{ m_EventID = HandEventID.REPLACE; m_Lambda = lambda; }

Перекрестные ссылки m_EventID.

◆ HandEventCreated()

void HandEventCreated ( Man p = null,
InventoryLocation src = null )
inlineprivate
723{ m_EventID = HandEventID.CREATED; }

Перекрестные ссылки m_EventID.

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

◆ HandEventDestroy()

void HandEventDestroy ( Man p = null,
InventoryLocation src = null )
inlineprivate
716{ m_EventID = HandEventID.DESTROY; }

Перекрестные ссылки m_EventID.

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

◆ HandEventDestroyed()

void HandEventDestroyed ( Man p = null,
InventoryLocation src = null )
inlineprivate
728{ m_EventID = HandEventID.DESTROYED; }

Перекрестные ссылки m_EventID.

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

◆ HandEventHumanCommandActionAborted()

void HandEventHumanCommandActionAborted ( Man p = null,
InventoryLocation src = null )
inlineprivate
814{ m_EventID = HandEventID.HUMANCOMMAND_ACTION_ABORTED; }

Перекрестные ссылки m_EventID.

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

◆ HandEventHumanCommandActionFinished()

void HandEventHumanCommandActionFinished ( Man p = null,
InventoryLocation src = null )
inlineprivate
808{ m_EventID = HandEventID.HUMANCOMMAND_ACTION_FINISHED; }

Перекрестные ссылки m_EventID.

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

◆ HandEventMoveTo()

void HandEventMoveTo ( Man p = null,
InventoryLocation src = null,
InventoryLocation dst = null )
inlineprivate

destination for item in hands

274{ m_EventID = HandEventID.MOVETO; m_Dst = dst; }

Перекрестные ссылки m_EventID.

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

◆ HandEventReplaced()

void HandEventReplaced ( Man p = null,
InventoryLocation src = null )
inlineprivate
784{ m_EventID = HandEventID.REPLACED; }

Перекрестные ссылки m_EventID.

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

◆ HandEventSwap()

538 {
539 m_EventID = HandEventID.SWAP;
540 m_Dst = dst;
541 m_Src2 = src2;
542 m_Dst2 = dst2;
543 }

Перекрестные ссылки m_EventID.

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

◆ HandEventTake()

void HandEventTake ( Man p = null,
InventoryLocation src = null )
inlineprivate
210{ m_EventID = HandEventID.TAKE; }

Перекрестные ссылки m_EventID.

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

◆ IsServerSideOnly() [1/2]

override bool IsServerSideOnly ( )
inlineprivate
718{ return true; }

◆ IsServerSideOnly() [2/2]

override bool IsServerSideOnly ( )
inlineprivate
751{ return true; }

◆ ReadFromContext() [1/3]

override void ReadFromContext ( ParamsReadContext ctx)
inlineprivate
277 {
279 super.ReadFromContext(ctx);
280 m_Dst.ReadFromContext(ctx);
281 }

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

◆ ReadFromContext() [2/3]

override void ReadFromContext ( ParamsReadContext ctx)
inlineprivate
546 {
547 super.ReadFromContext(ctx);
548
552
553 m_Src2.ReadFromContext(ctx);
554 m_Dst.ReadFromContext(ctx);
555 m_Dst2.ReadFromContext(ctx);
556 ctx.Read(m_Animation2ID);
557 }
int m_Animation2ID
destination for old item that was in hands
Definition Hand_Events.c:535

◆ ReadFromContext() [3/3]

override void ReadFromContext ( ParamsReadContext ctx)
inlineprivate
739 {
740 super.ReadFromContext(ctx);
741 ctx.Read(m_Type);
742 Error("[hndfsm] HandEventDestroyAndReplaceWithNew - Cannot serialize lambda (read)");
743 }
string m_Type
Definition Hand_Events.c:733

Перекрестные ссылки Error() и m_Type.

◆ ReserveInventory()

override bool ReserveInventory ( )
inlineprivate
653 {
654 if (!m_Player.GetHumanInventory().HasInventoryReservation(m_Dst.GetItem(), m_Dst) && !m_Player.GetHumanInventory().HasInventoryReservation(m_Dst2.GetItem(), m_Dst2))
655 {
656 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst.GetItem(), m_Dst, GameInventory.c_InventoryReservationTimeoutShortMS))
657 {
658 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst2.GetItem(), m_Dst2, GameInventory.c_InventoryReservationTimeoutShortMS))
659 {
660 return true;
661 }
662 else
663 {
664 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
665 }
666 }
667 }
668 return false;
669 }
const int c_InventoryReservationTimeoutShortMS
Definition Inventory.c:713

Перекрестные ссылки GameInventory::c_InventoryReservationTimeoutShortMS и m_Player.

◆ WriteToContext() [1/3]

override void WriteToContext ( ParamsWriteContext ctx)
inlineprivate
283 {
284 super.WriteToContext(ctx);
285 m_Dst.WriteToContext(ctx);
286 }

◆ WriteToContext() [2/3]

override void WriteToContext ( ParamsWriteContext ctx)
inlineprivate
560 {
561 super.WriteToContext(ctx);
562
563 m_Src2.WriteToContext(ctx);
564 m_Dst.WriteToContext(ctx);
565 m_Dst2.WriteToContext(ctx);
566 ctx.Write(m_Animation2ID);
567 }

◆ WriteToContext() [3/3]

override void WriteToContext ( ParamsWriteContext ctx)
inlineprivate
745 {
746 super.WriteToContext(ctx);
747 ctx.Write(m_Type);
748 Error("[hndfsm] HandEventDestroyAndReplaceWithNew - Cannot serialize lambda (write)");
749 }

Перекрестные ссылки Error() и m_Type.

Поля

◆ m_Animation2ID

int m_Animation2ID = -1
private

destination for old item that was in hands

◆ m_Dst

ref InventoryLocation m_Dst
private

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

◆ m_Dst2

ref InventoryLocation m_Dst2
private

src of old item in hands

◆ m_Lambda

◆ m_Src2

ref InventoryLocation m_Src2
private

destination for new item (i.e. hands)

◆ m_Type

string m_Type
private

Объявления и описания членов класса находятся в файле: