mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-26 15:44:51 +01:00
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* LWSDK Header File
|
|
* Copyright 1999, NewTek, Inc.
|
|
*
|
|
* LWCMDSEQ.H -- LightWave CommandSequence Server
|
|
*
|
|
* This header contains the types and declarations for the Modeler
|
|
* CommandSequence class.
|
|
*/
|
|
#ifndef LWSDK_CMDSEQ_H
|
|
#define LWSDK_CMDSEQ_H
|
|
|
|
#include <lwdyna.h>
|
|
#include <lwtypes.h>
|
|
#include <lwmeshedt.h>
|
|
|
|
#define LWMODCOMMAND_CLASS "CommandSequence"
|
|
#define LWMODCOMMAND_VERSION 3
|
|
|
|
|
|
typedef struct st_LWModCommand {
|
|
void *data;
|
|
const char *argument;
|
|
LWCommandCode (*lookup) (void *, const char *cmdName);
|
|
int (*execute) (void *, LWCommandCode cmd,
|
|
int argc, const DynaValue *argv,
|
|
EltOpSelect, DynaValue *result);
|
|
MeshEditBegin *editBegin;
|
|
int (*evaluate) (void *, const char *command);
|
|
} LWModCommand;
|
|
|
|
#define CSERR_NONE 0
|
|
#define CSERR_MEMORY 1
|
|
#define CSERR_IO 2
|
|
#define CSERR_USERABORT 4
|
|
#define CSERR_ARGCOUNT 2901
|
|
#define CSERR_ARGTYPE 2902
|
|
#define CSERR_ARGVALUE 2903
|
|
#define CSERR_OPFAILURE 2904
|
|
#define CSERR_BADSEL 2905
|
|
|
|
#endif
|
|
|