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:
parent
8680d07e0a
commit
5687a7ba90
@ -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.
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user