Added Struct Abstraction extension (bug 2666 and bug 2663)

--HG--
rename : extensions/structs/structs.txt => gamedata/structs.gamedata.txt
rename : extensions/structs/structs.inc => plugins/include/structs.inc
rename : extensions/structs/structtest.sp => plugins/testsuite/structtest.sp
This commit is contained in:
Matt Woodrow 2008-09-18 15:32:22 +12:00
parent 8680d07e0a
commit 5687a7ba90
4 changed files with 9 additions and 0 deletions

View File

@ -156,6 +156,7 @@ native SetStructEnt(Handle:strct, const String:member[], entity);
/**
* Retrieves a struct handle to a FileWeaponInfo_t for the given weapon name.
* This handle needs to be closed when you have finished using it.
*
* @param weapon Weapon name to retrieve.
* @return Struct handle or INVALID_HANDLE on failure.

View File

@ -282,6 +282,14 @@ namespace builder
lib.vcproj_name = "clientprefs";
libraries.Add(lib);
lib = new Library();
lib.package_path = "addons/sourcemod/extensions/auto.2.ep2";
lib.source_path = "extensions/structs";
lib.binary_name = "structs.ext";
lib.vcproj_name = "sdk";
lib.build_mode = BuildMode.BuildMode_Episode2;
libraries.Add(lib);
return (Library [])libraries.ToArray(typeof(Library));
}