by Fly-Star
| 35 | |
| 36 | // by Fly-Star |
| 37 | int 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 | |
| 56 | std::optional<bool> TEventExt::Execute(TEventClass* pThis, int iEvent, HouseClass* pHouse, |
| 57 | ObjectClass* pObject, CDTimerClass* pTimer, bool* isPersitant, TechnoClass* pSource) |
nothing calls this directly
no outgoing calls
no test coverage detected