Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
72
Engine/Zalla3D Scene Class/Z3DChrEventGenerator.h
Normal file
72
Engine/Zalla3D Scene Class/Z3DChrEventGenerator.h
Normal file
@@ -0,0 +1,72 @@
|
||||
// Z3DChrEventGenerator.h: interface for the CZ3DChrEventGenerator class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_Z3DCHREVENTGENERATOR_H__2B89C8C6_9900_43B9_BC56_9FC64A1B20C3__INCLUDED_)
|
||||
#define AFX_Z3DCHREVENTGENERATOR_H__2B89C8C6_9900_43B9_BC56_9FC64A1B20C3__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include "Z3D_GLOBALS.h"
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
|
||||
|
||||
struct Z3D_EVENT_ELEMENT
|
||||
{
|
||||
long lFrame;
|
||||
Z3DTOK tokEvent;
|
||||
Z3DTOK tokSecondaryEvent;
|
||||
|
||||
// <20>м<EFBFBD><D0BC><EFBFBD> <20><>Ÿ<EFBFBD><C5B8> Ȯ<><C8AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20>ù<C3B9> <20>̺<EFBFBD>Ʈ<EFBFBD><C6AE> denominator<6F><72> 0
|
||||
long lProb_Numerator;
|
||||
long lProb_Denominator;
|
||||
|
||||
bool operator < ( const Z3D_EVENT_ELEMENT &op ) const
|
||||
{
|
||||
return lFrame < op.lFrame;
|
||||
}
|
||||
};
|
||||
|
||||
// vector<6F><72> <20><><EFBFBD><EFBFBD>
|
||||
/*struct Z3D_EVENT_DATA
|
||||
{
|
||||
long lCount;
|
||||
|
||||
Z3D_EVENT_ELEMENT* pData;
|
||||
|
||||
~Z3D_EVENT_DATA()
|
||||
{
|
||||
SAFE_DELETEA( pData );
|
||||
}
|
||||
};*/
|
||||
|
||||
class CZ3DChrEventGenerator
|
||||
{
|
||||
public:
|
||||
CZ3DChrEventGenerator();
|
||||
virtual ~CZ3DChrEventGenerator();
|
||||
|
||||
void CheckEvent( float fCurrentFrame, float fPrevFrame,
|
||||
std::vector<Z3DTOK> &r_vecEvent, std::vector<Z3DTOK> &r_vecSecondaryEvent );
|
||||
|
||||
bool SetTokAniPack( Z3DTOK tokFileName );
|
||||
Z3DTOK GetTokAniPack();
|
||||
|
||||
|
||||
static bool _Load( const char* szFileName );
|
||||
static void _Close();
|
||||
|
||||
static void _RetrieveEventDataList( std::map< Z3DTOK, std::vector<Z3D_EVENT_ELEMENT>* >* &pMap );
|
||||
|
||||
protected:
|
||||
std::vector<Z3D_EVENT_ELEMENT>* m_rp_vecEventData;
|
||||
Z3DTOK m_tokCurrentAniPack;
|
||||
|
||||
static std::map< Z3DTOK, std::vector<Z3D_EVENT_ELEMENT>* > ms_mapTok2EventData;
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_Z3DCHREVENTGENERATOR_H__2B89C8C6_9900_43B9_BC56_9FC64A1B20C3__INCLUDED_)
|
||||
Reference in New Issue
Block a user