Added a new file to export source side constants into the script engine.
This commit is contained in:
parent
48116ba9f8
commit
79295b4c05
@ -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"
|
||||
|
11
src/map/script_constants.h
Normal file
11
src/map/script_constants.h
Normal 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_ */
|
@ -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" />
|
||||
|
@ -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>
|
||||
|
@ -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" />
|
||||
|
@ -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>
|
||||
|
@ -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" />
|
||||
|
@ -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>
|
||||
|
@ -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" />
|
||||
|
@ -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>
|
||||
|
@ -740,6 +740,10 @@
|
||||
RelativePath="..\src\map\script.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\map\script_constants.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\map\searchstore.c"
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user