convert line ends
[canaan.git] / prj / cam / src / editor / roomtowr.h
blobe4e4a7010fd454e283da75adbca041e87fa8ebe2
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/editor/roomtowr.h,v 1.1 1999/12/01 09:26:03 MAT Exp $
8 /* --=<= --/-/-/-/-/-/-/ <(< (( ((( /^^\ ))) )) >)> \-\-\-\-\-\-\-- =>=-- *\
9 roomtowr.h
11 There are a few cases where we want to use room brushes to flag, at
12 least in a rough way, cells in the world rep. This works something
13 like flow brushes, finding which geometry intersects which.
14 Clients should install their callbacks once on app init.
16 RoomToWRProcess, the main function, should be called right after
17 the world rep has been generated.
19 This stuff should only exist in editor builds.
21 \* --=<= --\-\-\-\-\-\-\ <(< (( ((( \vv/ ))) )) >)> /-/-/-/-/-/-/-- =>=-- */
23 #ifndef _ROOMTOWR_H_
24 #pragma once
25 #define _ROOMTOWR_H_
27 #include <wrdb.h>
29 class cRoom;
31 // We call these on every cell/room combination which intersect.
32 typedef void (* tRoomToWRCallback)(int iCell, cRoom *pRoom, void *pData);
34 // We call these as the first step in RoomToWRProcess.
35 typedef void (* tRoomToWRStartCallback)();
37 // We call these as the final step in RoomToWRProcess.
38 typedef void (* tRoomToWREndCallback)();
40 extern void RoomToWRAddCallback(tRoomToWRCallback pfnCallback, void *pData);
41 extern void RoomToWRAddStartCallback(tRoomToWRStartCallback pfnCallback);
42 extern void RoomToWRAddEndCallback(tRoomToWREndCallback pfnCallback);
43 extern void RoomToWRProcess();
45 #endif // ~_ROOMTOWR_H_