void Start()
    {
        var exerciseConnectionPtr = ExerciseConnection.ExerciseConnectionPtr;

        entityAddedCallback = new NetSimAgent.EntityAddedCallback(EntityAdded);
        NetSimAgent.Instance.SetEntityAddedCallback(exerciseConnectionPtr, entityAddedCallback);

        entityRemovedCallback = new NetSimAgent.EntityRemovedCallback(EntityRemoved);
        NetSimAgent.Instance.SetEntityRemovedCallback(exerciseConnectionPtr, entityRemovedCallback);

        entityStateCallback = new NetSimAgent.EntityStateCallback(EntityStateChanged);
        NetSimAgent.Instance.SetEntityStateCallback(exerciseConnectionPtr, entityStateCallback);

        entityStateArtPartCallback = new NetSimAgent.EntityStateArtPartCallback(EntityStateArtPartChanged);
        NetSimAgent.Instance.SetEntityStateArtPartCallback(exerciseConnectionPtr, entityStateArtPartCallback);
    }
Esempio n. 2
0
 public void SetEntityStateCallback(System.IntPtr exConnPtr, NetSimAgent.EntityStateCallback entityStateCallback)
 {
     CppExerciseConnection.SetEntityStateCallback(exConnPtr, entityStateCallback);
 }
Esempio n. 3
0
 public extern static void SetEntityStateCallback(IntPtr exConnPtr, NetSimAgent.EntityStateCallback entityStateCallback);