Nuclide
Software Development Kit for id Technology (BETA)
UserEntity.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
36class
38{
39 void ncUserEntity(void);
40
41 virtual void Spawned(void);
42
43#ifdef SERVER
44 nonvirtual ncUserEntity AllocateNewType(ncPlayer queryingPlayer, string entClass);
45#endif
46
47#ifdef CLIENT
48 virtual void _ReceiveComplete(float, float);
49 nonvirtual void RequestRemoval(void);
50
51 virtual void OnGainedFocus(void);
52 virtual void OnLostFocus(void);
53
54 entity m_uiControlView;
55#endif
56
57private:
58 int m_ownerClientID; /* matches client edict id */
59 int m_ownerGroupID; /* matches group object id */
60};
61
Definition: MediaSurface.h:37
This entity class represents every player client.
Definition: Player.h:142
Shared: User Placed/Controlled Object Superclass.
Definition: UserEntity.h:38