VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
remoteStateComponentNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
11 class DtReflectedObject;
12 
19 namespace makVrf
20 {
21  class DtFrameStateInterface;
22 
24  {
25  private:
28 
31 
34  orig);
35 
36  public:
37 
43  bool publishObject = true);
44 
47 
48  virtual bool isUnit() const { return false; };
49  virtual bool isEntity() const { return false; };
50  virtual bool isEnvironmental() const { return false; };
51 
53  virtual void onTick();
54 
55  virtual bool isLocal() const { return false; };
56 
58 
59  virtual void updateComponent() = 0;
60 
61  virtual bool wantsToCreatePublisher() const
62  {
63  return false;
64  }
65 
66  protected:
67  static void reflectedObjectUpdatedCallback(DtReflectedObject*, void*);
68  virtual void processReflectedObjectUpdated(DtReflectedObject*);
69 
70  protected:
74  };
75 }
Class Description: DtStateComponentNetInterface.
Definition: stateComponentNetInterface.h:30
virtual bool isUnit() const
Is this network interface for a local (true) or remote (false) object? Deriving network interfaces sh...
Definition: remoteStateComponentNetInterface.h:48
Definition: remoteStateComponentNetInterface.h:23
virtual bool isLocal() const
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: remoteStateComponentNetInterface.h:55
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
virtual bool isEnvironmental() const
Definition: remoteStateComponentNetInterface.h:50
bool myUpdatedOnNetwork
Definition: remoteStateComponentNetInterface.h:73
DtReflectedObject * myReflectedObject
Definition: remoteStateComponentNetInterface.h:71
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
virtual bool wantsToCreatePublisher() const
Returns true if this interface wants to create a publisher. This cannot be done in parallel...
Definition: remoteStateComponentNetInterface.h:61
DtFrameStateInterface * myStateComponent
Definition: remoteStateComponentNetInterface.h:72
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:291
virtual bool isEntity() const
Definition: remoteStateComponentNetInterface.h:49

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)