Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct PassData //thanks to DeadMG for improvements.
- {
- std::vector<cell> Paths;
- std::vector<cell> Polygon;
- int extraid;
- AMX * script;
- cell MoveCost;
- PassData()
- {
- extraid = 0;
- script = NULL;
- MoveCost = 0;
- Paths.clear();
- Polygon.clear();
- }
- template<typename Iterator,typename Piterator> PassData(Iterator begin, Iterator end, int extraid_, cell MoveCost_, AMX * script_, Piterator Pbegin, Piterator Pend)
- : Paths(begin, end),Polygon(Pbegin,Pend)
- {
- extraid = extraid_;
- MoveCost = MoveCost_;
- script = script_;
- }
- ~PassData()
- {
- Paths.clear();
- Polygon.clear();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment