Restructure repository to include all source folders

Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-29 20:17:20 +09:00
parent 5d3cd64a25
commit dd97ddec92
11602 changed files with 1446576 additions and 0 deletions

View File

@@ -0,0 +1,94 @@
#include <iostream>
#include <conio.h> //getch
using namespace std;
#include "..\ScriptEngine.h"
void PrintInt( int n )
{
cout << "Print( int ) ==> " << n << endl;
}
void PrintFloat( float f )
{
cout << "Print( float ) ==> " << f << endl;
}
void PrintStr( const char * str )
{
cout << "Print( const char * ) ==> " << str << endl;
}
void PrintBOOL( BOOL b )
{
cout << "Print( bool ) ==> ";
if( b )
cout << "true";
else
cout << "false";
cout << endl;
}
void ScriptMessage( const char * msg )
{
cout << "##" << msg << "##\n";
}
void main( int argc, char *argv[] )
{
_SE_SetMessageFunction( ScriptMessage );
SCRIPT Script;
if( argc != 2 )
{
Script = _SE_Create( "TestCode.gsf" );
}
else
{
Script = _SE_Create( argv[1] );
}
if( Script == 0 )
cout << "usage : ScriptTest [gsf filename]" << endl;
_SE_RegisterFunction( Script, PrintInt, T_VOID, "Print", T_INT, T_VOID );
_SE_RegisterFunction( Script, PrintFloat, T_VOID, "Print", T_FLOAT, T_VOID );
_SE_RegisterFunction( Script, PrintStr, T_VOID, "Print", T_STRING, T_VOID );
_SE_RegisterFunction( Script, PrintBOOL, T_VOID, "Print", T_BOOL, T_VOID );
_SE_Execute( Script );
SE_FUNC ScriptMain = _SE_GetScriptFunction( Script, T_VOID, "ScriptMain", 0 );
_SE_CallScriptFunction( Script, ScriptMain );
SE_FUNC getDoubleFunc = _SE_GetScriptFunction( Script, T_INT, "getDouble", T_INT, 0 );
AnyData result = _SE_CallScriptFunction( Script, getDoubleFunc, 1000 );
cout << "getDouble() ==> " << result.intValue << endl;
SE_FUNC getDoubleFunc2 = _SE_GetScriptFunction( Script, T_FLOAT, "getDouble", T_FLOAT, 0 );
AnyData result2 = _SE_CallScriptFunction( Script, getDoubleFunc2, 0.534f );
cout << "getDouble(float) ==> " << result2.floatValue << endl;
SE_FUNC TestFloat1 = _SE_GetScriptFunction( Script, T_FLOAT, "TestFloat", T_FLOAT, T_FLOAT, 0 );
result = _SE_CallScriptFunction( Script, TestFloat1, 0.325f, 13.535f ); //4.398875
cout << "TestFloat( float, float ) ==> " << result.floatValue << endl;
SE_FUNC TestFloat2 = _SE_GetScriptFunction( Script, T_FLOAT, "TestFloat", T_FLOAT, T_FLOAT, T_FLOAT, 0 );
result = _SE_CallScriptFunction( Script, TestFloat2, 0.23415f, 8412.5325f, 212.53f ); //418640.4218
cout << "TestFloat( float, float, float ) ==> " << result.floatValue << endl;
SE_FUNC TestFloat3 = _SE_GetScriptFunction( Script, T_FLOAT, "TestFloat", T_FLOAT, T_FLOAT, T_FLOAT, T_FLOAT, 0 );
result = _SE_CallScriptFunction( Script, TestFloat3, 32.3f, 35.2f, 8.2f, 93.66f );
cout << "TestFloat( float, float, float, float ) ==> " << result.floatValue << endl; //873198.92352
cout << "Press any key to continue...\n";
getch();
_SE_Destroy( Script );
}