update shit
This commit is contained in:
		
							
								
								
									
										205
									
								
								CodeGen/src/CKERROR.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										205
									
								
								CodeGen/src/CKERROR.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,205 @@
 | 
			
		||||
// Operation successful
 | 
			
		||||
 | 
			
		||||
#define CKERR_OK           0
 | 
			
		||||
 | 
			
		||||
// One of the parameter passed to the function was invalid
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDPARAMETER      -1
 | 
			
		||||
 | 
			
		||||
// One of the parameter passed to the function was invalid
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDPARAMETERTYPE     -2
 | 
			
		||||
 | 
			
		||||
// The parameter size was invalid
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDSIZE       -3
 | 
			
		||||
 | 
			
		||||
// The operation type didn't exist
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDOPERATION      -4
 | 
			
		||||
 | 
			
		||||
// The function used to execute the operation is not yet implemented
 | 
			
		||||
 | 
			
		||||
#define CKERR_OPERATIONNOTIMPLEMENTED    -5
 | 
			
		||||
 | 
			
		||||
// There was not enough memory to perform the action
 | 
			
		||||
 | 
			
		||||
#define CKERR_OUTOFMEMORY       -6
 | 
			
		||||
 | 
			
		||||
// The function  is not yet implemented
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOTIMPLEMENTED      -7
 | 
			
		||||
 | 
			
		||||
// There was an attempt to remove something not present
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOTFOUND        -11
 | 
			
		||||
 | 
			
		||||
// There is no level currently created
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOLEVEL        -13
 | 
			
		||||
 | 
			
		||||
// 
 | 
			
		||||
 | 
			
		||||
#define CKERR_CANCREATERENDERCONTEXT    -14
 | 
			
		||||
 | 
			
		||||
// The notification message was not used
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOTIFICATIONNOTHANDLED    -16
 | 
			
		||||
 | 
			
		||||
// Attempt to add an item that was already present 
 | 
			
		||||
 | 
			
		||||
#define CKERR_ALREADYPRESENT      -17
 | 
			
		||||
 | 
			
		||||
// the render context is not valid
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDRENDERCONTEXT     -18
 | 
			
		||||
 | 
			
		||||
// the render context is not activated for rendering
 | 
			
		||||
 | 
			
		||||
#define CKERR_RENDERCONTEXTINACTIVE     -19
 | 
			
		||||
 | 
			
		||||
// there was no plugins to load this kind of file
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOLOADPLUGINS       -20
 | 
			
		||||
 | 
			
		||||
// there was no plugins to save this kind of file
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOSAVEPLUGINS       -21
 | 
			
		||||
 | 
			
		||||
// attempt to load an invalid file
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDFILE       -22
 | 
			
		||||
 | 
			
		||||
// attempt to load with an invalid plugin
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDPLUGIN       -23
 | 
			
		||||
 | 
			
		||||
// attempt use an object that wasnt initialized
 | 
			
		||||
 | 
			
		||||
#define  CKERR_NOTINITIALIZED      -24
 | 
			
		||||
 | 
			
		||||
// attempt use a message type that wasn't registred
 | 
			
		||||
 | 
			
		||||
#define  CKERR_INVALIDMESSAGE      -25
 | 
			
		||||
 | 
			
		||||
// attempt use an invalid prototype
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDPROTOTYPE               -28
 | 
			
		||||
 | 
			
		||||
// No dll file found in the parse directory
 | 
			
		||||
 | 
			
		||||
#define CKERR_NODLLFOUND       -29
 | 
			
		||||
 | 
			
		||||
// this dll has already been registred 
 | 
			
		||||
 | 
			
		||||
#define CKERR_ALREADYREGISTREDDLL     -30
 | 
			
		||||
 | 
			
		||||
// this dll does not contain information to create the prototype
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDDLL       -31
 | 
			
		||||
 | 
			
		||||
// Invalid Object (attempt to Get an object from an invalid ID)
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDOBJECT       -34
 | 
			
		||||
 | 
			
		||||
// Invalid window was provided as console window 
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDCONDSOLEWINDOW     -35
 | 
			
		||||
 | 
			
		||||
// Invalid kinematic chain ( end and start effector may not be part of the same hierarchy )
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDKINEMATICCHAIN     -36 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// Keyboard not attached or not working properly
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOKEYBOARD       -37 
 | 
			
		||||
 | 
			
		||||
// Mouse not attached or not working properly
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOMOUSE        -38 
 | 
			
		||||
 | 
			
		||||
// Joystick not attached or not working properly
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOJOYSTICK       -39 
 | 
			
		||||
 | 
			
		||||
// Try to link imcompatible Parameters
 | 
			
		||||
 | 
			
		||||
#define CKERR_INCOMPATIBLEPARAMETERS    -40
 | 
			
		||||
 | 
			
		||||
// There is no render engine dll 
 | 
			
		||||
 | 
			
		||||
#define CKERR_NORENDERENGINE      -44 
 | 
			
		||||
 | 
			
		||||
// There is no current level (use CKSetCurrentLevel )
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOCURRENTLEVEL      -45 
 | 
			
		||||
 | 
			
		||||
// Sound Management has been disabled
 | 
			
		||||
 | 
			
		||||
#define CKERR_SOUNDDISABLED       -46 
 | 
			
		||||
 | 
			
		||||
// DirectInput Management has been disabled
 | 
			
		||||
 | 
			
		||||
#define CKERR_DINPUTDISABLED      -47 
 | 
			
		||||
 | 
			
		||||
// Guid is already in use or invalid 
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDGUID       -48 
 | 
			
		||||
 | 
			
		||||
// There was no more free space on disk when trying to save a file
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOTENOUGHDISKPLACE     -49 
 | 
			
		||||
 | 
			
		||||
// Impossible to write to file (write-protection ?)
 | 
			
		||||
 | 
			
		||||
#define CKERR_CANTWRITETOFILE      -50 
 | 
			
		||||
 | 
			
		||||
// The behavior cannnot be added to this entity 
 | 
			
		||||
 | 
			
		||||
#define CKERR_BEHAVIORADDDENIEDBYCB     -51 
 | 
			
		||||
 | 
			
		||||
// The behavior cannnot be added to this entity 
 | 
			
		||||
 | 
			
		||||
#define CKERR_INCOMPATIBLECLASSID     -52 
 | 
			
		||||
 | 
			
		||||
// A manager was registered more than once
 | 
			
		||||
 | 
			
		||||
#define CKERR_MANAGERALREADYEXISTS     -53 
 | 
			
		||||
 | 
			
		||||
// CKprocess or TimeManager process while CK is paused will fail
 | 
			
		||||
 | 
			
		||||
#define CKERR_PAUSED        -54 
 | 
			
		||||
 | 
			
		||||
// Some plugins were missing whileloading a file
 | 
			
		||||
 | 
			
		||||
#define CKERR_PLUGINSMISSING      -55 
 | 
			
		||||
 | 
			
		||||
// Virtools version too old to load this file
 | 
			
		||||
 | 
			
		||||
#define CKERR_OBSOLETEVIRTOOLS      -56 
 | 
			
		||||
 | 
			
		||||
// CRC Error while loading file
 | 
			
		||||
 | 
			
		||||
#define CKERR_FILECRCERROR       -57
 | 
			
		||||
 | 
			
		||||
// A Render context is already in Fullscreen Mode
 | 
			
		||||
 | 
			
		||||
#define CKERR_ALREADYFULLSCREEN      -58
 | 
			
		||||
 | 
			
		||||
// Operation was cancelled by user
 | 
			
		||||
 | 
			
		||||
#define CKERR_CANCELLED        -59
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// there were no animation key at the given index
 | 
			
		||||
 | 
			
		||||
#define CKERR_NOANIMATIONKEY      -121
 | 
			
		||||
 | 
			
		||||
// attemp to acces an animation key with an invalid index
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDINDEX       -122
 | 
			
		||||
 | 
			
		||||
// the animation is invalid (no entity associated or zero length)
 | 
			
		||||
 | 
			
		||||
#define CKERR_INVALIDANIMATION      -123
 | 
			
		||||
							
								
								
									
										27
									
								
								CodeGen/src/CKMISC.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								CodeGen/src/CKMISC.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
			
		||||
enum !CK_FILE_WRITEMODE
 | 
			
		||||
	CKFILE_UNCOMPRESSED	       =0,	// Save data uncompressed
 | 
			
		||||
	CKFILE_CHUNKCOMPRESSED_OLD =1,	// Obsolete
 | 
			
		||||
	CKFILE_EXTERNALTEXTURES_OLD=2,	// Obsolete : use CKContext::SetGlobalImagesSaveOptions instead.
 | 
			
		||||
	CKFILE_FORVIEWER           =4,	// Don't save Interface Data within the file, the level won't be editable anymore in the interface
 | 
			
		||||
	CKFILE_WHOLECOMPRESSED     =8,	// Compress the whole file
 | 
			
		||||
 | 
			
		||||
enum !CK_LOAD_FLAGS
 | 
			
		||||
			CK_LOAD_ANIMATION					=1<<0,	// Load animations
 | 
			
		||||
			CK_LOAD_GEOMETRY					=1<<1,	// Load geometry.
 | 
			
		||||
			CK_LOAD_DEFAULT						=CK_LOAD_GEOMETRY|CK_LOAD_ANIMATION,	// Load animations & geometry
 | 
			
		||||
			CK_LOAD_ASCHARACTER					=1<<2, // Load all the objects and create a character that contains them all .
 | 
			
		||||
			CK_LOAD_DODIALOG					=1<<3, // Check object name unicity and warns the user with a dialog box when duplicate names are found. 
 | 
			
		||||
			CK_LOAD_AS_DYNAMIC_OBJECT			=1<<4, // Objects loaded from this file may be deleted at run-time or are temporary
 | 
			
		||||
			CK_LOAD_AUTOMATICMODE				=1<<5, // Check object name unicity and automatically rename or replace according to the options specified in CKContext::SetAutomaticLoadMode
 | 
			
		||||
			CK_LOAD_CHECKDUPLICATES				=1<<6, // Check object name unicity (The list of duplicates is stored in the CKFile class after a OpenFile call
 | 
			
		||||
			CK_LOAD_CHECKDEPENDENCIES			=1<<7, // Check if every plugins needed are availables
 | 
			
		||||
			CK_LOAD_ONLYBEHAVIORS				=1<<8, // 
 | 
			
		||||
 | 
			
		||||
enum CK_FO_OPTIONS
 | 
			
		||||
		CK_FO_DEFAULT = 0,		 // Default behavior : a new object will be created with the name stored in CKFileObject
 | 
			
		||||
		CK_FO_RENAMEOBJECT,		 // Renaming : a new object will be created with the name stored in CKFileObject + a integer value XXX to ensure its uniqueness
 | 
			
		||||
		CK_FO_REPLACEOBJECT,	 // Do not create a new object, instead use an existing one which CK_ID is given by CreatedObject   	
 | 
			
		||||
								 // to load the chunk on 
 | 
			
		||||
		CK_FO_DONTLOADOBJECT,	 // Object chunk will not be read either because it is a reference
 | 
			
		||||
								// or because the loaded object already exist in the current level 
 | 
			
		||||
								// and the user choose to keep the existing one.
 | 
			
		||||
							
								
								
									
										70
									
								
								CodeGen/src/CK_CLASSID.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										70
									
								
								CodeGen/src/CK_CLASSID.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,70 @@
 | 
			
		||||
#define  CKCID_OBJECT					1		
 | 
			
		||||
	#define  CKCID_PARAMETERIN				2	
 | 
			
		||||
	#define  CKCID_PARAMETEROPERATION		4	
 | 
			
		||||
	#define  CKCID_STATE					5	
 | 
			
		||||
	#define  CKCID_BEHAVIORLINK				6	
 | 
			
		||||
	#define  CKCID_BEHAVIOR					8	
 | 
			
		||||
	#define  CKCID_BEHAVIORIO				9	
 | 
			
		||||
	#define  CKCID_RENDERCONTEXT			12	
 | 
			
		||||
	#define  CKCID_KINEMATICCHAIN			13	
 | 
			
		||||
	#define  CKCID_SCENEOBJECT				11		
 | 
			
		||||
		#define  CKCID_OBJECTANIMATION			15	
 | 
			
		||||
		#define  CKCID_ANIMATION				16	
 | 
			
		||||
			#define  CKCID_KEYEDANIMATION		18	
 | 
			
		||||
		#define  CKCID_BEOBJECT					19	
 | 
			
		||||
			#define	 CKCID_DATAARRAY			52	
 | 
			
		||||
			#define  CKCID_SCENE				10	
 | 
			
		||||
			#define  CKCID_LEVEL				21	
 | 
			
		||||
			#define  CKCID_PLACE				22	
 | 
			
		||||
			#define  CKCID_GROUP				23	
 | 
			
		||||
			#define  CKCID_SOUND				24	
 | 
			
		||||
				#define  CKCID_WAVESOUND		25	
 | 
			
		||||
				#define  CKCID_MIDISOUND		26	
 | 
			
		||||
			#define  CKCID_MATERIAL				30	
 | 
			
		||||
			#define  CKCID_TEXTURE				31	
 | 
			
		||||
			#define  CKCID_MESH					32	
 | 
			
		||||
				#define CKCID_PATCHMESH			53	
 | 
			
		||||
			#define  CKCID_RENDEROBJECT			47	
 | 
			
		||||
				#define  CKCID_2DENTITY			27	
 | 
			
		||||
					#define  CKCID_SPRITE		28	
 | 
			
		||||
					#define  CKCID_SPRITETEXT	29	
 | 
			
		||||
			#define  CKCID_3DENTITY				33	
 | 
			
		||||
				#define CKCID_GRID				50	
 | 
			
		||||
				#define  CKCID_CURVEPOINT		36	
 | 
			
		||||
				#define  CKCID_SPRITE3D			37	
 | 
			
		||||
				#define  CKCID_CURVE			43	
 | 
			
		||||
				#define  CKCID_CAMERA			34	
 | 
			
		||||
					#define  CKCID_TARGETCAMERA	35	
 | 
			
		||||
				#define  CKCID_LIGHT			38	
 | 
			
		||||
					#define  CKCID_TARGETLIGHT	39	
 | 
			
		||||
				#define  CKCID_CHARACTER		40	
 | 
			
		||||
				#define  CKCID_3DOBJECT			41	
 | 
			
		||||
					#define  CKCID_BODYPART		42	
 | 
			
		||||
	#define  CKCID_PARAMETER				46		
 | 
			
		||||
		#define  CKCID_PARAMETERLOCAL		45	
 | 
			
		||||
			#define  CKCID_PARAMETERVARIABLE	55	
 | 
			
		||||
		#define  CKCID_PARAMETEROUT			3	
 | 
			
		||||
	#define CKCID_INTERFACEOBJECTMANAGER	48	
 | 
			
		||||
	#define CKCID_CRITICALSECTION			49	
 | 
			
		||||
	#define CKCID_LAYER						51	
 | 
			
		||||
	#define CKCID_PROGRESSIVEMESH			54		
 | 
			
		||||
	#define CKCID_SYNCHRO					20	
 | 
			
		||||
 | 
			
		||||
#define  CKCID_OBJECTARRAY				80	
 | 
			
		||||
#define  CKCID_SCENEOBJECTDESC			81	
 | 
			
		||||
#define  CKCID_ATTRIBUTEMANAGER			82	
 | 
			
		||||
#define  CKCID_MESSAGEMANAGER			83	
 | 
			
		||||
#define  CKCID_COLLISIONMANAGER			84	
 | 
			
		||||
#define  CKCID_OBJECTMANAGER			85	
 | 
			
		||||
#define  CKCID_FLOORMANAGER				86	
 | 
			
		||||
#define  CKCID_RENDERMANAGER			87	
 | 
			
		||||
#define  CKCID_BEHAVIORMANAGER			88	
 | 
			
		||||
#define  CKCID_INPUTMANAGER				89	
 | 
			
		||||
#define  CKCID_PARAMETERMANAGER			90	
 | 
			
		||||
#define  CKCID_GRIDMANAGER				91	
 | 
			
		||||
#define  CKCID_SOUNDMANAGER				92	
 | 
			
		||||
#define  CKCID_TIMEMANAGER				93	
 | 
			
		||||
#define  CKCID_CUIKBEHDATA				-1	
 | 
			
		||||
 | 
			
		||||
#define CKCID_MAXCLASSID				56	
 | 
			
		||||
#define  CKCID_MAXMAXCLASSID			128
 | 
			
		||||
		Reference in New Issue
	
	Block a user