| 1 | #ifndef GAME_EDITOR_QUAD_KNIFE_H |
|---|---|
| 2 | #define GAME_EDITOR_QUAD_KNIFE_H |
| 3 | |
| 4 | #include "component.h" |
| 5 | |
| 6 | class CQuadKnife : public CEditorComponent |
| 7 | { |
| 8 | public: |
| 9 | class CState |
| 10 | { |
| 11 | public: |
| 12 | bool m_Active; |
| 13 | int m_SelectedQuadIndex; |
| 14 | int m_Count; |
| 15 | vec2 m_aPoints[4]; |
| 16 | }; |
| 17 | |
| 18 | bool IsActive() const; |
| 19 | void Activate(int SelectedQuad); |
| 20 | void Deactivate(); |
| 21 | void DoSlice(); |
| 22 | }; |
| 23 | |
| 24 | #endif |
| 25 |