The common code base includes a ton of functions and methods. We have only touched on about half of them here. I aimed to show you the most important modules and their contents, and I think that's been accomplished nicely. For your browsing pleasure, Table 7.2 contains a reference to find all the functions in all common code modules.
Module | Function |
---|---|
common/main.cs | InitCommon |
common/client/actionMap.cs | ActionMap::copyBind |
common/client/audio.cs | OpenALInit |
common/client/canvas.cs | InitCanvas |
common/client/cursor.cs | CursorOff |
common/client/help.cs | HelpDlg::onWake |
common/client/message.cs | ClientCmdChatMessage |
common/client/messageBox.cs | MessageCallback |
common/client/metrics.cs | FpsMetricsCallback |
common/client/mission.cs | ClientCmdMissionStart |
common/client/missionDownload.cs | ClientCmdMissionStartPhase1 |
common/client/recordings.cs | RecordingsDlg::onWake |
common/client/screenshot.cs | FormatImageNumber |
common/server/audio.cs | ServerPlay2D |
common/server/clientConnection.cs | GameConnection::onConnectRequest |
common/server/commands.cs | ServerCmdSAD |
common/server/game.cs | OnServerCreated |
common/server/kickban.cs | Kick |
common/server/message.cs | MessageClient |
common/server/missionDownload.cs | GameConnection::loadMission |
common/server/missionInfo.cs | ClearLoadInfo |
common/server/missionLoad.cs | LoadMission |
common/server/server.cs | PortInit |
common/ui/ConsoleDlg.gui | ConsoleEntry::eval |
common/ui/GuiEditorGui.gui | GuiEditorStartCreate |
common/ui/LoadFileDlg.gui | FillFileList |
common/ui/SaveFileDlg.gui | GetSaveFilename |
One last thing to remember about the common code: As chock-full of useful and important functionality as it is, you don't need to use it to create a game with Torque. You'd be nuts to throw it away, in my humble opinion. Nonetheless, you could create your own script code base from the bottom up. One thing I hope this chapter has shown you is that a huge pile of work has already been done for you. You just need to build on it.