Nuclide
Software Development Kit for id Technology (BETA)
UserEntity_Picture.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_Picture(void);
31
32#ifdef SERVER
33 virtual void Save(float handle);
34 virtual void Restore(string, string);
35 virtual void EvaluateEntity(void);
36 virtual float SendEntity(entity ePEnt, float flChanged);
37
38 nonvirtual void Place(ncPlayer videoSharer, string videoName, string videoURL, vector realSize, string optionalDescription);
39#endif
40
41#ifdef CLIENT
42 virtual void ReceiveEntity(float flNew, float flChanged);
43 virtual void ReloadVideoResources(void);
44 virtual float predraw(void);
45 virtual void RenderScene(void);
46#endif
47
48private:
49 string m_userPictureURL;
50 string m_userPosterName;
51 string m_userPosterTitle;
52
53#ifdef CLIENT
54 entity m_uiPic;
55 entity m_uiLabel;
56#endif
57};
This entity class represents every player client.
Definition: Player.h:142
Shared: User Placed/Controlled Picture.
Definition: UserEntity_Picture.h:28
Shared: User Placed/Controlled Object Superclass.
Definition: UserEntity.h:38