Added a new file to export source side constants into the script engine.

This commit is contained in:
Lemongrass3110 2015-12-31 02:49:44 +01:00
parent 48116ba9f8
commit 79295b4c05
11 changed files with 33 additions and 1 deletions

View File

@ -39,6 +39,7 @@ set( MAP_HEADERS
"${MAP_SOURCE_DIR}/pet.h"
"${MAP_SOURCE_DIR}/quest.h"
"${MAP_SOURCE_DIR}/script.h"
"${MAP_SOURCE_DIR}/script_constants.h"
"${MAP_SOURCE_DIR}/searchstore.h"
"${MAP_SOURCE_DIR}/skill.h"
"${MAP_SOURCE_DIR}/status.h"

View File

@ -0,0 +1,11 @@
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _SCRIPT_CONSTANTS_H_
#define _SCRIPT_CONSTANTS_H_
#define export_constant(a) script_set_constant(###a,a,false)
#undef export_constant
#endif /* _SCRIPT_CONSTANTS_H_ */

View File

@ -196,6 +196,7 @@
<ClInclude Include="..\src\config\secure.h" />
<ClInclude Include="..\src\config\classes\general.h" />
<ClInclude Include="..\src\map\script.h" />
<ClInclude Include="..\src\map\script_constants.h" />
<ClInclude Include="..\src\map\searchstore.h" />
<ClInclude Include="..\src\map\skill.h" />
<ClInclude Include="..\src\map\status.h" />

View File

@ -94,6 +94,9 @@
<ClCompile Include="..\src\map\script.c">
<Filter>map</Filter>
</ClCompile>
<ClInclude Include="..\src\map\script_constants.h">
<Filter>map</Filter>
</ClInclude>
<ClCompile Include="..\src\map\searchstore.c">
<Filter>map</Filter>
</ClCompile>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
@ -200,6 +200,7 @@
<ClInclude Include="..\src\config\secure.h" />
<ClInclude Include="..\src\config\classes\general.h" />
<ClInclude Include="..\src\map\script.h" />
<ClInclude Include="..\src\map\script_constants.h" />
<ClInclude Include="..\src\map\searchstore.h" />
<ClInclude Include="..\src\map\skill.h" />
<ClInclude Include="..\src\map\status.h" />

View File

@ -94,6 +94,9 @@
<ClCompile Include="..\src\map\script.c">
<Filter>map</Filter>
</ClCompile>
<ClInclude Include="..\src\map\script_constants.h">
<Filter>map</Filter>
</ClInclude>
<ClCompile Include="..\src\map\searchstore.c">
<Filter>map</Filter>
</ClCompile>

View File

@ -200,6 +200,7 @@
<ClInclude Include="..\src\config\secure.h" />
<ClInclude Include="..\src\config\classes\general.h" />
<ClInclude Include="..\src\map\script.h" />
<ClInclude Include="..\src\map\script_constants.h" />
<ClInclude Include="..\src\map\searchstore.h" />
<ClInclude Include="..\src\map\skill.h" />
<ClInclude Include="..\src\map\status.h" />

View File

@ -94,6 +94,9 @@
<ClCompile Include="..\src\map\script.c">
<Filter>map</Filter>
</ClCompile>
<ClInclude Include="..\src\map\script_constants.h">
<Filter>map</Filter>
</ClInclude>
<ClCompile Include="..\src\map\searchstore.c">
<Filter>map</Filter>
</ClCompile>

View File

@ -199,6 +199,7 @@
<ClInclude Include="..\src\config\secure.h" />
<ClInclude Include="..\src\config\classes\general.h" />
<ClInclude Include="..\src\map\script.h" />
<ClInclude Include="..\src\map\script_constants.h" />
<ClInclude Include="..\src\map\searchstore.h" />
<ClInclude Include="..\src\map\skill.h" />
<ClInclude Include="..\src\map\status.h" />

View File

@ -94,6 +94,9 @@
<ClCompile Include="..\src\map\script.c">
<Filter>map</Filter>
</ClCompile>
<ClInclude Include="..\src\map\script_constants.h">
<Filter>map</Filter>
</ClInclude>
<ClCompile Include="..\src\map\searchstore.c">
<Filter>map</Filter>
</ClCompile>

View File

@ -740,6 +740,10 @@
RelativePath="..\src\map\script.h"
>
</File>
<File
RelativePath="..\src\map\script_constants.h"
>
</File>
<File
RelativePath="..\src\map\searchstore.c"
>