Commit Graph

5 Commits

Author SHA1 Message Date
SmallJoker
a463620edb Re-order sound-related code ()
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated
'fade' and 'pitch' values on server-side where only one was used anyway.
SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included.

Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the
future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-20 21:56:12 +02:00
Loïc Blot
eef62c82a2 Modernize lua read (part 2 & 3): C++ templating assurance ()
* Modernize lua read (part 2 & 3): C++ templating assurance

Implement the boolean reader
Implement the string reader
Also remove unused & unimplemented script_error_handler
Add a reader with default value
2018-06-30 17:11:38 +02:00
Vitaliy
20a85d76d9 Move files to subdirectories ()
* Move files around
2017-11-08 23:56:20 +01:00
red-001
4ee6be856d [CSM] Add support for positional audio. ()
Fixes parts of .
2017-04-06 08:14:31 +02:00
Loïc Blot
2c19d51409 [CSM] sound_play & sound_stop support + client_lua_api doc ()
* squashed: CSM: Implement register_globalstep
  * Re-use fatal error mechanism from server to disconnect client on CSM error
  * Little client functions cleanups

* squashed: CSM: add core.after function
  * core.after is shared code between client & server
  * ModApiUtil get_us_time feature enabled for client
2017-03-13 23:56:05 +01:00