public void AddRegion(Scene s) { scene = s; // Initialize command handler before adding event handlers UserPrimManager userPrimManager = new UserPrimManager (scene); cmdHandler.Add ("create", new CreateHandler (userPrimManager)); cmdHandler.Add ("undo", new UndoHandler (userPrimManager)); scene.EventManager.OnChatFromClient += SimChatEventHandler; scene.EventManager.OnChatFromWorld += SimChatEventHandler; }
public UndoHandler(UserPrimManager u) { userPrimManager = u; }