Example #1
0
 private IMyUseObject CreateInteractiveObject(string detectorName, string dummyName, MyModelDummy dummyData, uint shapeKey)
 {
     if (!(base.Container.Entity is MyDoor) || (detectorName != "terminal"))
     {
         return(MyUseObjectFactory.CreateUseObject(detectorName, base.Container.Entity, dummyName, dummyData, shapeKey));
     }
     return(new MyUseObjectDoorTerminal(base.Container.Entity, dummyName, dummyData, shapeKey));
 }
Example #2
0
        private IMyUseObject CreateInteractiveObject(string detectorName, string dummyName, MyModelDummy dummyData, uint shapeKey)
        {
            // temporary hack until dummy for door terminal is renamed
            if (Container.Entity is MyDoor && detectorName == "terminal")
            {
                return(new MyUseObjectDoorTerminal(Container.Entity, dummyName, dummyData, shapeKey));
            }

            return(MyUseObjectFactory.CreateUseObject(detectorName, Container.Entity, dummyName, dummyData, shapeKey));
        }