1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00
Commit Graph

236 Commits

Author SHA1 Message Date
Sandu Liviu Catalin
3b729cd73d Added several aliases and short notations for members in vehicle entity type. 2015-11-11 11:36:37 +02:00
Sandu Liviu Catalin
12b70f2795 Added several more functions for debugging infotmation in base entity reference. 2015-11-11 11:32:12 +02:00
Sandu Liviu Catalin
9c5205d03b Minor adjustment in debugging information for sprite entity type. 2015-11-11 11:31:35 +02:00
Sandu Liviu Catalin
f3b7f35055 Minor adjustment in debugging information for textdraw entity type. 2015-11-11 11:31:26 +02:00
Sandu Liviu Catalin
09ef3f43a3 Update vehicle entity to use the new debugging implementation. 2015-11-11 11:30:50 +02:00
Sandu Liviu Catalin
f426b282ae Registered the reference for the vehicle entity type with the script. 2015-11-11 10:56:02 +02:00
Sandu Liviu Catalin
fc603053dd Aliased several methods for textdraw entity type. Also a minor fix in debuggin information during registration. 2015-11-11 09:55:38 +02:00
Sandu Liviu Catalin
ba1f933e7b Aliased several methods for sprite entity type. 2015-11-11 09:54:44 +02:00
Sandu Liviu Catalin
ae1ec72715 Update textdraw entity to use the new debugging implementation. 2015-11-11 09:52:16 +02:00
Sandu Liviu Catalin
69c991167d Update sprite entity to use the new debugging implementation. 2015-11-11 09:26:36 +02:00
Sandu Liviu Catalin
66d7421373 Update sphere entity to use the new debugging implementation. 2015-11-11 09:07:42 +02:00
Sandu Liviu Catalin
cdd5cb2050 Update player entity to use the new debugging implementation. And create alternative version of several member functions. 2015-11-11 09:02:42 +02:00
Sandu Liviu Catalin
a6ded15aaa Update pickup entity to use the new debugging implementation. 2015-11-11 08:57:34 +02:00
Sandu Liviu Catalin
fc2ecea7b9 Update object entity to use the new debugging implementation. 2015-11-11 08:57:26 +02:00
Sandu Liviu Catalin
cd86375bd2 Update keybind entity to use the new debugging implementation. 2015-11-11 08:57:18 +02:00
Sandu Liviu Catalin
6a50e21f75 Update checkpoint entity to use the new debugging implementation. 2015-11-11 08:57:10 +02:00
Sandu Liviu Catalin
ec21e52353 Update blip entity to use the new debugging implementation. 2015-11-11 08:57:03 +02:00
Sandu Liviu Catalin
5855f7b46a Reduce duplicate debugging information from entities by moving it to member functions in base entity. 2015-11-11 08:56:38 +02:00
Sandu Liviu Catalin
73b93d707c Implemented a minimal version of ToStringF with a static buffer. 2015-11-11 08:54:50 +02:00
Sandu Liviu Catalin
68ac878fe9 Added a shorter name for rocket launcher in constants. 2015-11-11 08:48:47 +02:00
Sandu Liviu Catalin
3da18ee02b Initial implementation of the internal debugging system. 2015-11-10 14:42:52 +02:00
Sandu Liviu Catalin
dfc5701799 Implemented format based query execution for SQLite database connection. 2015-11-09 08:05:36 +02:00
Sandu Liviu Catalin
00da988cc2 Implement a format based hashing API. 2015-11-09 07:36:41 +02:00
Sandu Liviu Catalin
8c81a0f2b2 Minor fix in logger. 2015-11-09 07:36:22 +02:00
Sandu Liviu Catalin
bcf9d603e7 Implemented global and local player messaging customization. 2015-11-09 05:54:03 +02:00
Sandu Liviu Catalin
3c3e67bdaa Implement message prefixing and other style customization. 2015-11-09 04:32:32 +02:00
Sandu Liviu Catalin
8b9d46d9a9 Implemented player messaging. 2015-11-09 03:29:04 +02:00
Sandu Liviu Catalin
14a46c5372 Fixed spelling mistake in command function name. Updated collor packing macros to correct type casting. 2015-11-09 03:27:52 +02:00
Sandu Liviu Catalin
3f7f2c9163 Removed unnecessary return from logger. 2015-11-09 01:35:59 +02:00
Sandu Liviu Catalin
c6ee38e3b6 Implemented user defined type conversion for color types. 2015-11-09 01:35:39 +02:00
Sandu Liviu Catalin
6f89d0b8d1 Use entity instance when sending the invoker to commands. 2015-11-08 23:52:56 +02:00
Sandu Liviu Catalin
8a01a1b0ed Added auto generation of informational message based on the suplied argument tags and specifiers. 2015-11-08 23:25:40 +02:00
Sandu Liviu Catalin
b5ed79ad43 Exposed methods for checking if an argument supports a certain type and whether a certain invoker is allowed to execute. 2015-11-08 22:34:14 +02:00
Sandu Liviu Catalin
b6023b842e Implemented command argument tag/name to allow auto generation of command syntax information. 2015-11-08 22:31:03 +02:00
Sandu Liviu Catalin
d26b9b560e Fixed argument range checking in command manager. 2015-11-08 21:34:25 +02:00
Sandu Liviu Catalin
4e23d3ff88 Exported command enumerations and helper function to retrieve player instance level without an instance. 2015-11-08 21:12:05 +02:00
Sandu Liviu Catalin
ad65cf91d8 Documentation spelling corrections and added several functions to retrieve useful information about the currently executed command and a more expanded constructor as well. 2015-11-08 20:53:50 +02:00
Sandu Liviu Catalin
e41581a0e3 Added a member function in command manager to retrieve the last invoker. 2015-11-08 12:36:23 +02:00
Sandu Liviu Catalin
b05b8f3859 Fixed several spelling mistakes in code class documentation. 2015-11-08 12:35:54 +02:00
Sandu Liviu Catalin
24d2ca30c2 Exposed a couple logging functions to the script and prepared the logging class for documentation. 2015-11-08 12:34:46 +02:00
Sandu Liviu Catalin
673119db3d Removed the root table reference from the core class which was causing a 998 error when the plugin was loaded. 2015-11-08 10:11:49 +02:00
Sandu Liviu Catalin
920d70185f Remove log messages from the event system and and remove the need for unique signatures in signals. 2015-11-08 07:47:50 +02:00
Sandu Liviu Catalin
e1db16d3ec Move the IRC library outside the custom folder. 2015-11-08 07:26:46 +02:00
Sandu Liviu Catalin
c070c7acc8 More documentation for the core class. 2015-11-08 07:20:31 +02:00
Sandu Liviu Catalin
3206d49404 Implemented a simple command system. Added a custom buffer class. Implemented reconnection for IRC sessions. Various other adjustments and additions. 2015-11-07 12:17:39 +02:00
Sandu Liviu Catalin
878a35eb2a Modified IRC Session events to receive the Session instance as first argument. Remeved leftover file and minor change in IDE sandbox project. 2015-11-04 20:58:05 +02:00
Sandu Liviu Catalin
92a75e70a0 Untested implementation of the SQLite database library. 2015-11-03 04:22:21 +02:00
Sandu Liviu Catalin
4b5718a6ae Added an untested implementation a 64bit integer wrapper for 32bit module. 2015-11-03 04:21:46 +02:00
Sandu Liviu Catalin
1e18099176 Minor changes in the IRC Session registration code. 2015-11-03 04:20:53 +02:00
Sandu Liviu Catalin
7f51bd098c Added a few missing RFC numbers from in IRC library. 2015-11-01 18:38:05 +02:00
Sandu Liviu Catalin
ea1688bc35 Prepared the base types for documentation. 2015-11-01 10:55:47 +02:00
Sandu Liviu Catalin
acb0512d43 Added the file structure for the SQLite database wrappers. 2015-11-01 10:16:49 +02:00
Sandu Liviu Catalin
46801b1ce8 Discarded the noexcept specifier entirely. 2015-11-01 05:48:01 +02:00
Sandu Liviu Catalin
2409a896df Changes required to compile on x64 and against extra compiler warnings. 2015-11-01 05:36:03 +02:00
Sandu Liviu Catalin
b42bc2930c Documented the base reference type. 2015-11-01 03:50:43 +02:00
Sandu Liviu Catalin
db0de394d9 Spellcheck on the code documentation of core class. 2015-11-01 03:43:30 +02:00
Sandu Liviu Catalin
1ebb2d15ce More documentation in the core class code. Minor code adjustments. Removed leftover includes. 2015-11-01 03:41:13 +02:00
Sandu Liviu Catalin
ed1771d376 Extended callback binding on local event type to allow custom environments. 2015-11-01 02:15:03 +02:00
Sandu Liviu Catalin
21b9e71d83 Extended callback binding on global event type to allow custom environments. 2015-11-01 02:14:55 +02:00
Sandu Liviu Catalin
0796185225 Extended callback binding on basic event type to allow custom environments. 2015-11-01 02:14:45 +02:00
Sandu Liviu Catalin
dd685a13e4 Add back the VMClose event on event types to avoid crashes. 2015-11-01 02:02:16 +02:00
Sandu Liviu Catalin
1fd54aead6 Add back the VMClose event on IRC session type to avoid crashes. 2015-11-01 01:53:51 +02:00
Sandu Liviu Catalin
11c3533917 Implemented functions to create vehicle entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:33:12 +02:00
Sandu Liviu Catalin
eb730a6ff3 Implemented functions to create textdraw entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:33:04 +02:00
Sandu Liviu Catalin
997cdc2fce Implemented functions to create sprite entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:32:57 +02:00
Sandu Liviu Catalin
0d5dd53984 Implemented functions to create sphere entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:32:50 +02:00
Sandu Liviu Catalin
b0c174e75e Added constructor to create a player entity reference from a base reference. 2015-11-01 01:32:41 +02:00
Sandu Liviu Catalin
8d8c9be2fd Implemented functions to create pickup entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:32:16 +02:00
Sandu Liviu Catalin
6c308ee85c Implemented functions to create object entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:31:57 +02:00
Sandu Liviu Catalin
78c72399db Implemented functions to create keybind entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:31:46 +02:00
Sandu Liviu Catalin
986fc5769e Implemented functions to create checkpoint entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:31:38 +02:00
Sandu Liviu Catalin
2a3cef8318 Implemented functions to create blip entities and added constructor to create an entity reference from a base reference. 2015-11-01 01:31:28 +02:00
Sandu Liviu Catalin
9686f9e664 Updated core class to take a Uint8 colors when creating checkpoints and speheres. 2015-11-01 01:30:45 +02:00
Sandu Liviu Catalin
0aafb46af2 Revise the entity creation/destruction system. 2015-10-31 21:28:23 +02:00
Sandu Liviu Catalin
1f985c5ebc Move the resource releasing from the local event type to it's destructor. 2015-10-31 21:27:35 +02:00
Sandu Liviu Catalin
ab78f53875 Move the resource releasing from the global event type to it's destructor. 2015-10-31 21:27:21 +02:00
Sandu Liviu Catalin
d937be3e37 Move the resource releasing from the basic event type to it's destructor. 2015-10-31 21:27:06 +02:00
Sandu Liviu Catalin
a2a02a6c9d Move the resource releasing from the IRC Session type to it's destructor. 2015-10-31 21:25:40 +02:00
Sandu Liviu Catalin
1a34efb45b Fix debugging messages in Keybind type. 2015-10-30 15:22:35 +02:00
Sandu Liviu Catalin
d3d247b5f9 Simlified the buffer size calculation in Player type.
Fixed bug which multiplied by the type size instead of dividing. thanks @VRocker
2015-10-30 15:22:23 +02:00
Sandu Liviu Catalin
f26bf3db4a Completed the IRC library implementation. 2015-10-30 15:14:13 +02:00
Sandu Liviu Catalin
054d81e4f1 Implemented a temporary workaround for event types that prevents crashes when anonymous functions are used. 2015-10-30 15:13:52 +02:00
Sandu Liviu Catalin
ce5957395a Implemented the hashing library. 2015-10-30 06:37:55 +02:00
Sandu Liviu Catalin
f27dea4693 Incomplete implementation of the IRC library. 2015-10-30 04:17:18 +02:00
Sandu Liviu Catalin
6763c41c39 Replaced CFG library with the Hashing library. 2015-10-30 04:16:41 +02:00
Sandu Liviu Catalin
c2e62af14c Documented the Textdraw type. 2015-10-29 23:14:17 +02:00
Sandu Liviu Catalin
72677546a7 Documented the Sprite type. 2015-10-29 23:10:46 +02:00
Sandu Liviu Catalin
c8907b8ea2 Fixed the keybind documentation. 2015-10-29 23:06:20 +02:00
Sandu Liviu Catalin
7c337e49cb Documented the Keybind type. 2015-10-29 23:05:25 +02:00
Sandu Liviu Catalin
56170f5304 Fixed documentation of the Blip type. 2015-10-29 23:03:58 +02:00
Sandu Liviu Catalin
9abb596aa8 Documented the Blip type. 2015-10-29 23:02:55 +02:00
Sandu Liviu Catalin
37c69852d0 Prepared various miscellaneous types for documentation. 2015-10-29 22:59:35 +02:00
Sandu Liviu Catalin
dec4033208 Documented the shared miscellaneous code and made minor fixes. 2015-10-29 22:59:10 +02:00
Sandu Liviu Catalin
6f3579192a Documented the Weapon type and made minor fixes. 2015-10-29 22:58:49 +02:00
Sandu Liviu Catalin
14cba720dd Documented the Skin type and made minor fixes. 2015-10-29 22:58:38 +02:00
Sandu Liviu Catalin
fb00945f01 Documented the Model type and made minor fixes. 2015-10-29 22:58:19 +02:00
Sandu Liviu Catalin
6cecf4ad77 Documented the Automobile type and made minor fixes. 2015-10-29 22:58:13 +02:00
Sandu Liviu Catalin
031f82b9df Remove debugging code form the local event type. 2015-10-29 22:57:21 +02:00
Sandu Liviu Catalin
2f0d7d1444 Remove debugging code form the global event type. 2015-10-29 22:57:14 +02:00
Sandu Liviu Catalin
c71ac39bb8 Remove debugging code form the basic event type. 2015-10-29 22:57:07 +02:00
Sandu Liviu Catalin
4b71f2006f Update the sprite reference type to use the short notation of squirrel's 32bit unsigned integer. 2015-10-29 22:56:40 +02:00
Sandu Liviu Catalin
e111cd0ccc Untested implementation of the Vehicle type. 2015-10-29 22:56:07 +02:00
Sandu Liviu Catalin
6050f6e725 Untested implementation of the Textdraw type. 2015-10-29 22:55:36 +02:00
Sandu Liviu Catalin
df0eaf8515 Untested implementation of the Sprite type. 2015-10-29 22:41:20 +02:00
Sandu Liviu Catalin
e708ff8050 Untested implementation of the Sphere type. 2015-10-29 22:11:47 +02:00
Sandu Liviu Catalin
772822415b Untested implementation of the Player type. 2015-10-29 22:11:30 +02:00
Sandu Liviu Catalin
ab5c9c2686 Untested implementation of the Pickup type. 2015-10-29 22:11:00 +02:00
Sandu Liviu Catalin
25afc7e704 Untested implementation of the Object type. 2015-10-29 22:10:36 +02:00
Sandu Liviu Catalin
59c1d07c3e Untested implementation of the keybind type. 2015-10-29 22:09:53 +02:00
Sandu Liviu Catalin
7fc53d8274 Untested implementation of the Checkpoint type. 2015-10-29 22:07:31 +02:00
Sandu Liviu Catalin
f89e0d8cd6 Untested implementation of the Blip reference type. 2015-10-29 22:07:15 +02:00
Sandu Liviu Catalin
0ccf4678a8 Documented the code in Core class and made a few minor modifications. 2015-10-29 22:06:31 +02:00
Sandu Liviu Catalin
491ead2b12 Added a few macros to validate vehicle color identifiers. 2015-10-29 22:05:46 +02:00
Sandu Liviu Catalin
0ebdecb75f Various. 2015-10-25 03:20:33 +03:00
Sandu Liviu Catalin
bc5e5ef45f Reorder some of the event arguments and forward the received events to the speciffic signals. 2015-10-12 00:26:14 +03:00
Sandu Liviu Catalin
b099ccc0b4 Make the payload non-const in CAutomobile type. 2015-10-12 00:25:26 +03:00
Sandu Liviu Catalin
92f449efc6 Make the payload non-const in CModel type. 2015-10-12 00:25:03 +03:00
Sandu Liviu Catalin
cd512e1335 Remove the move semantics from signal emission functions. 2015-10-12 00:24:31 +03:00
Sandu Liviu Catalin
d68a6e5c73 Untested implementation of the local event type. 2015-10-11 21:06:44 +03:00
Sandu Liviu Catalin
8e750efe85 Added a helper function which can tell whether an event type can be inversed. 2015-10-11 21:06:28 +03:00
Sandu Liviu Catalin
c7e776a1f7 Disabled copy constructor and assignment in the global event type.
Added a compatibility member function in global event type to comply with the other event types.
Encapsulate constructors in global filters and disable them in script.
Disable the copy constructor in global filters.
Allow inclusion/exclusion member functions return boolean if the specified entity could be filtered or not.
Remove useless checks inside global filters since they cannot be unparented anymore.
Test whether an entity is enabled before hooking, unhooking from it inside global filters.
2015-10-11 21:06:02 +03:00
Sandu Liviu Catalin
0a8cf6afd2 Disable copy constructor and assignment in basic event type and include a compatibility member function to comply with the other event types. 2015-10-11 21:01:22 +03:00
Sandu Liviu Catalin
b8ccb1ca10 Update entity interfaces to include various functions required by the new event types. 2015-10-11 20:57:16 +03:00
Sandu Liviu Catalin
5984bfa50f Added a few more aliases to primitive types. 2015-10-11 20:56:17 +03:00
Sandu Liviu Catalin
bcd5ce5988 Untested implementation of the global event type. 2015-10-10 23:11:28 +03:00
Sandu Liviu Catalin
e099b10f67 Add a few helper functions shared by event types. Fix name in debug information during registration process. 2015-10-10 23:10:58 +03:00
Sandu Liviu Catalin
4affa937e4 Disable move semantics in basic event type.
Allow changing the event type in basic event type.
Adjust code length in basic event type.
2015-10-10 23:09:29 +03:00
Sandu Liviu Catalin
c67c214160 Update entity interfaces to include various functions required by the new event types. 2015-10-10 22:59:59 +03:00
Sandu Liviu Catalin
2de391dd78 Include forward declarations of event types into the config file. 2015-10-10 22:58:40 +03:00
Sandu Liviu Catalin
908ddbe30f Forgot to commit the header with the new changes to the basic event type. 2015-10-03 21:55:08 +03:00
Sandu Liviu Catalin
4927e4e5a4 Minor comment fix in core class. 2015-10-03 21:54:34 +03:00
Sandu Liviu Catalin
04936a9bef Remove unnecessary argument from the Attach() and Detach() member functions of the basic event. 2015-10-03 21:54:02 +03:00
Sandu Liviu Catalin
d5c5ff3289 Update entity interfaces to include a typedef to a bitset used by event types. 2015-10-03 21:53:09 +03:00
Sandu Liviu Catalin
231d05174d Forgot to release a couple references to Squirrel objects causing a crash when the smart pointers tried to release them after the VM was destroyed. 2015-10-03 19:44:26 +03:00
Sandu Liviu Catalin
20a78ab268 Implemented BasicEvent type. 2015-10-02 01:34:28 +03:00
Sandu Liviu Catalin
6ed02d0fd4 Initial commit. 2015-09-30 03:56:11 +03:00