Nuclide
Software Development Kit for id Technology (BETA)
UserEntity_Audio.h
1/*
2 * Copyright (c) 2025 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
26class
28{
29public:
30 void ncUserEntity_Audio(void);
31
32#ifdef SERVER
33 virtual void EvaluateEntity(void);
34 virtual float SendEntity(entity ePEnt, float flChanged);
35
36 nonvirtual void Place(ncPlayer audioSharer, string audioName, string audioURL, string audioPreview);
37#endif
38
39#ifdef CLIENT
40 virtual void ReceiveEntity(float flNew, float flChanged);
41#endif
42
43private:
44 string m_userAudioURL;
45 string m_userAudioPic;
46
47#ifdef CLIENT
48 entity m_audioPic;
49#endif
50};
This entity class represents every player client.
Definition: Player.h:142
Shared: User Placed/Controlled Audio Stream.
Definition: UserEntity_Audio.h:28
Shared: User Placed/Controlled Object Superclass.
Definition: UserEntity.h:38