Nuclide
Software Development Kit for id Technology (BETA)
UserEntity_Object.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
24class
26{
27public:
28 void ncUserEntity_Object(void);
29
30#ifdef SERVER
31 virtual void EvaluateEntity(void);
32 virtual float SendEntity(entity ePEnt, float flChanged);
33 virtual void Save(float handle);
34 virtual void Restore(string keyName, string setValue);
35
36 nonvirtual ncUserEntity_Object Place(ncPlayer videoSharer, string videoName, string videoURL, vector colorMod, float forceScale, vector newMins, vector newMaxs, string gui64, vector a, vector b, float c, vector guiRes);
37#endif
38
39#ifdef CLIENT
40 virtual void ReceiveEntity(float flNew, float flChanged);
41 virtual float predraw(void);
42 virtual void RenderScene(void);
43#endif
44
45private:
46 string m_userPictureURL;
47 string m_userPosterName;
48
49#ifdef CLIENT
50 entity m_uiPic;
51 entity m_uiLabel;
52 ncMediaSurface m_guiSurface;
53#endif
54};
Definition: MediaSurface.h:37
This entity class represents every player client.
Definition: Player.h:142
Shared: User Placed/Controlled Primitive.
Definition: UserEntity_Object.h:26
Shared: User Placed/Controlled Object Superclass.
Definition: UserEntity.h:38