Example #1
0
 public void SetPointerFromObject(ISimObject pObj)
 {
     if (!SimDictionary.Contains(pObj))
     {
         SimDictionary.RegisterObject(pObj);
     }
     ObjectPtr = pObj.ObjectPtr;
 }
        public void SetPointerFromObject(ConsoleObjectBase pObj)
        {
            ObjectPtr = pObj.ObjectPtr;

            if (this is ISimObject sim && !SimDictionary.Contains(sim))
            {
                SimDictionary.RegisterObject(sim);
            }
        }