Nuclide
Software Development Kit for id Technology (BETA)
UserEntity_Video.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
27class
29{
30public:
31 void ncUserEntity_Video(void);
32
33#ifdef SERVER
34 virtual void Spawned(void);
35 virtual void EvaluateEntity(void);
36 virtual float SendEntity(entity ePEnt, float flChanged);
37
38 nonvirtual void Stop(void);
39
40 nonvirtual void Place(ncPlayer videoSharer, string videoName, string videoTitle, string videoPreview, string videoURL, string audioURL);
41#endif
42
43#ifdef CLIENT
44 virtual void ReceiveEntity(float flNew, float flChanged);
45#endif
46
47private:
48 string m_userVideoTitle;
49 string m_userVideoName;
50 string m_userVideoPreview;
51 string m_userVideoURL;
52 string m_userVideoAudio;
53
54#ifdef CLIENT
55 entity m_videoPic;
56 entity m_videoLabel;
57#endif
58};
This entity class represents every player client.
Definition: Player.h:142
Shared: User Placed/Controlled Video.
Definition: UserEntity_Video.h:29
Shared: User Placed/Controlled Object Superclass.
Definition: UserEntity.h:38