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

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