Add rayman2 source files
This commit is contained in:
104
Rayman_X/cpa/tempgrp/TSN/Inc/SNinterf.hpp
Normal file
104
Rayman_X/cpa/tempgrp/TSN/Inc/SNinterf.hpp
Normal file
@@ -0,0 +1,104 @@
|
||||
//**************************************
|
||||
// This is the base class of your DLL interface
|
||||
// All methods of CPA_ToolDLLBase are
|
||||
// present in that class.
|
||||
//**************************************
|
||||
|
||||
#ifndef __SNDEDITINTERF_HPP__
|
||||
#define __SNDEDITINTERF_HPP__
|
||||
|
||||
#ifdef USE_IPT_DX5
|
||||
#include "IPT_DX5.h" /* InPuT (absolutely before GAM.h)*/
|
||||
#else /* USE_IPT_WIN */
|
||||
#include "IPT.h" /* InPuT (absolutely before GAM.h)*/
|
||||
#endif /* USE_IPT_WIN */
|
||||
#include "soundeditor.h"
|
||||
#include "SND.h"
|
||||
#include "SNDres.h"
|
||||
#include "TSNEvent.h"
|
||||
|
||||
class TSN_Res
|
||||
{
|
||||
public:
|
||||
CString m_csName;
|
||||
short m_wId;
|
||||
};
|
||||
|
||||
class TSN_ResList
|
||||
{
|
||||
public:
|
||||
CString m_csName;
|
||||
short m_wId;
|
||||
CPA_List<TSN_Res> m_ResList;
|
||||
};
|
||||
|
||||
|
||||
//----------------------------------------------------------
|
||||
// Tool DLL interface class
|
||||
//----------------------------------------------------------
|
||||
class SNDEDIT_Interface : public CPA_ToolDLLBase
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
void fn_vDestroyResList(void);
|
||||
void fn_vFillResList(void);
|
||||
static const char * fn_czGetResNameFromEdId(unsigned long _ulId);
|
||||
CPA_List<tdstBlockResourceMem> m_ModifiedResList;
|
||||
CPA_List<TSN_Event> m_EdiEventList;
|
||||
CPA_List<TSN_ResList> m_ResListList;
|
||||
|
||||
|
||||
ISoundEditor m_IEditor;
|
||||
|
||||
SNDEDIT_Interface(void);
|
||||
~SNDEDIT_Interface(void);
|
||||
|
||||
// ACP Messages Functions overload:
|
||||
static void CALLBACK EXPORT m_fn_vTimerProc(UINT uID,UINT,DWORD dwUser,DWORD,DWORD);
|
||||
static void mfn_vNotificationCallback(SCR_tdst_File_Description *_p_stFile, char *_p_szSectionName, void *_pvData, SCR_tde_Ntfy_Action _eAction);
|
||||
|
||||
BOOL m_bEditorEnabled;
|
||||
UINT m_uiTimerId;
|
||||
|
||||
// *** Sound resource mixing keys //
|
||||
IPT_tdxHandleToEntryElement m_hSoundResourceVolumeUp;
|
||||
IPT_tdxHandleToEntryElement m_hSoundResourceVolumeDown;
|
||||
IPT_tdxHandleToEntryElement m_hSoundResourceVolumeUpFast;
|
||||
IPT_tdxHandleToEntryElement m_hSoundResourceVolumeDownFast;
|
||||
|
||||
void fn_vBeforeEngine(void);
|
||||
void fn_vBeforeEditor(void);
|
||||
|
||||
void _OnSubMenuCommand(EDT_SubMenu *_pSubMenu,UINT uiMsgId);
|
||||
BOOL fn_bDefineSubMenu (EDT_SubMenu *_p_oEDTSubMenu);
|
||||
|
||||
/*
|
||||
void fn_vOnCloseEditor(void);
|
||||
void fn_vOnActivateEditor(CPA_List<CPA_BaseObject> *_pParams,BOOL _bBackActivated);
|
||||
|
||||
*/
|
||||
void fn_vJustAfterRegistered(void);
|
||||
void fn_vConstruct(void);
|
||||
// Called when engine level has changed, before editor level changes
|
||||
virtual void fn_vLevelChanges (void);
|
||||
virtual BOOL fn_bLoadBaseObject (CPA_BaseObject *p_oObject);
|
||||
// long OnQueryAction(CPA_EditorBase*, WPARAM, LPARAM);
|
||||
|
||||
|
||||
};
|
||||
|
||||
extern SNDEDIT_Interface* g_poSNDEDITInterface;
|
||||
extern tdstDLLIdentity g_stSNDEDITIdentity;
|
||||
|
||||
SCR_tde_Anl_ReturnValue TSN_fn_eLoadEventGroup(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
|
||||
BOOL TSN_fn_bInitSoundInfos(const char* _szFileName);
|
||||
BOOL TSN_fn_bDesInitSoundInfos(void);
|
||||
|
||||
|
||||
#endif // __SNDEDITINTERF_HPP__
|
||||
|
||||
|
||||
|
||||
|
||||
|
17
Rayman_X/cpa/tempgrp/TSN/Inc/StdAfx.h
Normal file
17
Rayman_X/cpa/tempgrp/TSN/Inc/StdAfx.h
Normal file
@@ -0,0 +1,17 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||
#include <afxcmn.h> // MFC support for Windows 95 Common Controls
|
||||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
||||
|
20
Rayman_X/cpa/tempgrp/TSN/Inc/TSNEvent.h
Normal file
20
Rayman_X/cpa/tempgrp/TSN/Inc/TSNEvent.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef __TSNEVENT_HPP__
|
||||
#define __TSNEVENT_HPP__
|
||||
|
||||
|
||||
class TSN_Event:public CPA_SaveObject
|
||||
{
|
||||
public:
|
||||
BOOL fn_bEngineLoad(void);
|
||||
SND_tdstBlockEvent * m_pEngineEvent;
|
||||
|
||||
virtual void *GetData(void);
|
||||
virtual long GetDataType(void) { return -1;}
|
||||
|
||||
TSN_Event();
|
||||
~TSN_Event(void){};
|
||||
|
||||
static SCR_tde_Anl_ReturnValue m_fn_eLoad(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
|
||||
};
|
||||
|
||||
#endif //__TSNEVENT_HPP__
|
251
Rayman_X/cpa/tempgrp/TSN/Inc/soundeditor.h
Normal file
251
Rayman_X/cpa/tempgrp/TSN/Inc/soundeditor.h
Normal file
@@ -0,0 +1,251 @@
|
||||
#ifndef _SOUND_EDITOR_H_
|
||||
#define _SOUND_EDITOR_H_
|
||||
|
||||
#include "afxdisp.h"
|
||||
|
||||
// Machine generated IDispatch wrapper class(es) created with ClassWizard
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ISoundEditor wrapper class
|
||||
|
||||
class ISoundEditor : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
ISoundEditor() {} // Calls COleDispatchDriver default constructor
|
||||
ISoundEditor(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
ISoundEditor(const ISoundEditor& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
LPDISPATCH GetEventGroups();
|
||||
void SetEventGroups(LPDISPATCH);
|
||||
long GetVersionNumber();
|
||||
void SetVersionNumber(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
BOOL OpenDocument(LPCTSTR csFilename);
|
||||
BOOL SaveDocument(LPCTSTR csFilename);
|
||||
BOOL AddSoundDirectory(LPCTSTR csPath);
|
||||
BOOL RebuildBanks();
|
||||
BOOL SaveLocalizedBanks(LPCTSTR _csDocumentPath, LPCTSTR _csLanguage);
|
||||
LPDISPATCH FindResFromEditorId(long _iId);
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// IEventGroup wrapper class
|
||||
|
||||
class IEventGroup : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
IEventGroup() {} // Calls COleDispatchDriver default constructor
|
||||
IEventGroup(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
IEventGroup(const IEventGroup& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
long GetId();
|
||||
void SetId(long);
|
||||
CString GetName();
|
||||
void SetName(LPCTSTR);
|
||||
LPDISPATCH GetResources();
|
||||
void SetResources(LPDISPATCH);
|
||||
LPDISPATCH GetEvents();
|
||||
void SetEvents(LPDISPATCH);
|
||||
CString GetFilePath();
|
||||
void SetFilePath(LPCTSTR);
|
||||
long GetVersionNumber();
|
||||
void SetVersionNumber(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ISND_EdiBank wrapper class
|
||||
|
||||
class ISND_EdiBank : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
ISND_EdiBank() {} // Calls COleDispatchDriver default constructor
|
||||
ISND_EdiBank(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
ISND_EdiBank(const ISND_EdiBank& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ISND_EdiMap wrapper class
|
||||
|
||||
class ISND_EdiMap : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
ISND_EdiMap() {} // Calls COleDispatchDriver default constructor
|
||||
ISND_EdiMap(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
ISND_EdiMap(const ISND_EdiMap& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// IEventGroups wrapper class
|
||||
|
||||
class IEventGroups : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
IEventGroups() {} // Calls COleDispatchDriver default constructor
|
||||
IEventGroups(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
IEventGroups(const IEventGroups& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
long GetCount();
|
||||
void SetCount(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
LPDISPATCH Item(long Index);
|
||||
LPDISPATCH FindItem(LPCTSTR csName);
|
||||
LPDISPATCH Add(LPCTSTR csName);
|
||||
BOOL Remove(LPCTSTR csEventGroupName);
|
||||
LPUNKNOWN Get_NewEnum();
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// IResource wrapper class
|
||||
|
||||
class IResource : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
IResource() {} // Calls COleDispatchDriver default constructor
|
||||
IResource(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
IResource(const IResource& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
CString GetName();
|
||||
void SetName(LPCTSTR);
|
||||
long GetVolume();
|
||||
void SetVolume(long);
|
||||
LPDISPATCH GetSampleRes();
|
||||
void SetSampleRes(LPDISPATCH);
|
||||
long GetType();
|
||||
void SetType(long);
|
||||
long GetDataOffset();
|
||||
void SetDataOffset(long);
|
||||
long GetDataSize();
|
||||
void SetDataSize(long);
|
||||
long GetId();
|
||||
void SetId(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// IResources wrapper class
|
||||
|
||||
class IResources : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
IResources() {} // Calls COleDispatchDriver default constructor
|
||||
IResources(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
IResources(const IResources& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
long GetCount();
|
||||
void SetCount(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
LPDISPATCH Item(long Index);
|
||||
LPDISPATCH FindItem(LPCTSTR csName);
|
||||
LPDISPATCH Add(LPCTSTR csName);
|
||||
LPDISPATCH AddSampleRes(LPCTSTR csName);
|
||||
BOOL Remove(LPCTSTR csResName);
|
||||
LPUNKNOWN Get_NewEnum();
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ISampleResource wrapper class
|
||||
|
||||
class ISampleResource : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
ISampleResource() {} // Calls COleDispatchDriver default constructor
|
||||
ISampleResource(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
ISampleResource(const ISampleResource& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
CString GetFileName();
|
||||
void SetFileName(LPCTSTR);
|
||||
long GetZipType();
|
||||
void SetZipType(long);
|
||||
BOOL GetLoop();
|
||||
void SetLoop(BOOL);
|
||||
long GetStartLoop();
|
||||
void SetStartLoop(long);
|
||||
long GetLoopLength();
|
||||
void SetLoopLength(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
BOOL SetSampleData(LPCTSTR csFilename);
|
||||
LPDISPATCH GetResource();
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// IEvents wrapper class
|
||||
|
||||
class IEvents : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
IEvents() {} // Calls COleDispatchDriver default constructor
|
||||
IEvents(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
IEvents(const IEvents& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
long GetCount();
|
||||
void SetCount(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
LPDISPATCH Item(long Index);
|
||||
LPDISPATCH FindItem(LPCTSTR csName);
|
||||
LPDISPATCH Add(LPCTSTR csName);
|
||||
LPDISPATCH AddPlayEvent(LPDISPATCH Resource);
|
||||
LPDISPATCH AddStopEvent(LPDISPATCH lpEvent);
|
||||
BOOL Remove(LPCTSTR csEventName);
|
||||
LPUNKNOWN Get_NewEnum();
|
||||
};
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// IEvent wrapper class
|
||||
|
||||
class IEvent : public COleDispatchDriver
|
||||
{
|
||||
public:
|
||||
IEvent() {} // Calls COleDispatchDriver default constructor
|
||||
IEvent(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
||||
IEvent(const IEvent& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
long GetId();
|
||||
void SetId(long);
|
||||
CString GetName();
|
||||
void SetName(LPCTSTR);
|
||||
BOOL GetDynamic();
|
||||
void SetDynamic(BOOL);
|
||||
BOOL GetStopable();
|
||||
void SetStopable(BOOL);
|
||||
long GetType();
|
||||
void SetType(long);
|
||||
|
||||
// Operations
|
||||
public:
|
||||
LPDISPATCH GetResource();
|
||||
};
|
||||
|
||||
#endif //_SOUND_EDITOR_H_
|
Reference in New Issue
Block a user