MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / GetFlags

Method GetFlags

src/Ext/TEvent/Body.cpp:37–54  ·  view source on GitHub ↗

by Fly-Star

Source from the content-addressed store, hash-verified

35
36// by Fly-Star
37int TEventExt::GetFlags(int iEvent)
38{
39 // 0x0 : If it has to have an AttachedObject in order to use it, then let it return 0.
40 // 0x4 : In MapClass, ZoneEntryBy uses it. borrowed from 0x684D61.
41 // 0x8 : In HouseClass, It will be added to the RelatedTags of the specified house. Ares' TriggerEvent 75/77 uses it. borrowed from 0x684E34.
42 // 0x10 : In LogicClass. borrowed from 0x684DCA.
43 switch (static_cast<PhobosTriggerEvent>(iEvent))
44 {
45 case PhobosTriggerEvent::ShieldBroken:
46 return 0;
47 //case
48 // return 0x4;
49 //case
50 // return 0x8;
51 default:
52 return 0x10;
53 }
54}
55
56std::optional<bool> TEventExt::Execute(TEventClass* pThis, int iEvent, HouseClass* pHouse,
57 ObjectClass* pObject, CDTimerClass* pTimer, bool* isPersitant, TechnoClass* pSource)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected