diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/editor_sendcommand.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/editor_sendcommand.h')
| -rw-r--r-- | sp/src/public/editor_sendcommand.h | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/sp/src/public/editor_sendcommand.h b/sp/src/public/editor_sendcommand.h index e8b432f6..3c944eb9 100644 --- a/sp/src/public/editor_sendcommand.h +++ b/sp/src/public/editor_sendcommand.h @@ -1,52 +1,52 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Defines an interface to the map editor for the execution of
-// editor shell commands from another application. Commands allow the
-// creation and deletion of entities, AI nodes, and AI node connections.
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef EDITOR_SENDCOMMAND_H
-#define EDITOR_SENDCOMMAND_H
-#pragma once
-
-class QAngle;
-
-//
-// Result codes from Worldcraft_SendCommand.
-//
-enum EditorSendResult_t
-{
- Editor_OK = 0, // Success.
- Editor_NotRunning, // Unable to establish a communications channel with the editor.
- Editor_BadCommand, // The editor did not accept the command.
-};
-
-
-//
-// Wrappers around specific commands for convenience.
-//
-EditorSendResult_t Editor_BeginSession(const char *pszMapName, int nMapVersion, bool bShowUI = false);
-EditorSendResult_t Editor_EndSession(bool bShowUI);
-EditorSendResult_t Editor_CheckVersion(const char *pszMapName, int nMapVersion, bool bShowUI = false);
-
-EditorSendResult_t Editor_CreateEntity(const char *pszEntity, float x, float y, float z, bool bShowUI = false);
-EditorSendResult_t Editor_DeleteEntity(const char *pszEntity, float x, float y, float z, bool bShowUI = false);
-EditorSendResult_t Editor_SetKeyValue(const char *pszEntity, float x, float y, float z, const char *pKey, const char *pValue, bool bShowUI = false);
-EditorSendResult_t Editor_RotateEntity(const char *pszEntity, float x, float y, float z, const QAngle &incrementalRotation, bool bShowUI = false);
-
-EditorSendResult_t Editor_CreateNode(const char *pszNodeClass, int nID, float x, float y, float z, bool bShowUI = false);
-EditorSendResult_t Editor_DeleteNode(int nID, bool bShowUI = false);
-
-EditorSendResult_t Editor_CreateNodeLink(int nStartID, int nEndID, bool bShowUI = false);
-EditorSendResult_t Editor_DeleteNodeLink(int nStartID, int nEndID, bool bShowUI = false);
-
-
-//
-// Actually does the work. All the above commands route through this.
-//
-EditorSendResult_t Editor_SendCommand(const char *pszCommand, bool bShowUI);
-
-
-#endif // EDITOR_SENDCOMMAND_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Defines an interface to the map editor for the execution of +// editor shell commands from another application. Commands allow the +// creation and deletion of entities, AI nodes, and AI node connections. +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef EDITOR_SENDCOMMAND_H +#define EDITOR_SENDCOMMAND_H +#pragma once + +class QAngle; + +// +// Result codes from Worldcraft_SendCommand. +// +enum EditorSendResult_t +{ + Editor_OK = 0, // Success. + Editor_NotRunning, // Unable to establish a communications channel with the editor. + Editor_BadCommand, // The editor did not accept the command. +}; + + +// +// Wrappers around specific commands for convenience. +// +EditorSendResult_t Editor_BeginSession(const char *pszMapName, int nMapVersion, bool bShowUI = false); +EditorSendResult_t Editor_EndSession(bool bShowUI); +EditorSendResult_t Editor_CheckVersion(const char *pszMapName, int nMapVersion, bool bShowUI = false); + +EditorSendResult_t Editor_CreateEntity(const char *pszEntity, float x, float y, float z, bool bShowUI = false); +EditorSendResult_t Editor_DeleteEntity(const char *pszEntity, float x, float y, float z, bool bShowUI = false); +EditorSendResult_t Editor_SetKeyValue(const char *pszEntity, float x, float y, float z, const char *pKey, const char *pValue, bool bShowUI = false); +EditorSendResult_t Editor_RotateEntity(const char *pszEntity, float x, float y, float z, const QAngle &incrementalRotation, bool bShowUI = false); + +EditorSendResult_t Editor_CreateNode(const char *pszNodeClass, int nID, float x, float y, float z, bool bShowUI = false); +EditorSendResult_t Editor_DeleteNode(int nID, bool bShowUI = false); + +EditorSendResult_t Editor_CreateNodeLink(int nStartID, int nEndID, bool bShowUI = false); +EditorSendResult_t Editor_DeleteNodeLink(int nStartID, int nEndID, bool bShowUI = false); + + +// +// Actually does the work. All the above commands route through this. +// +EditorSendResult_t Editor_SendCommand(const char *pszCommand, bool bShowUI); + + +#endif // EDITOR_SENDCOMMAND_H |