Esempio n. 1
0
 public override void loadContent()
 {
     if (m_doorLink > 0)
     {
         m_doorToOpen = (SecurityDoor)Game.getInstance().getState().getObjectById(m_doorLink);
     }
 }
Esempio n. 2
0
 public DoorOpenEffect(SecurityDoor a_doorToOpen, float a_openSpeed, float a_closeSpeed)
 {
     m_closeAfterwards = true;
     m_doorToOpen = a_doorToOpen;
     m_openSpeed = a_openSpeed;
     m_closeSpeed = a_closeSpeed;
 }
Esempio n. 3
0
        public void Proxy_TestProtection()
        {
            SecurityDoor security = new SecurityDoor(new LabDoor());

            security.SetPassword("Hello");
            security.OpenDoor();
            security.SetPassword("S3cR3T!");
            security.OpenDoor();
            security.CloseDoor();
        }
        private static T SetupDoorBase <T>(CPBlock block, SecurityDoor door) where T : CPContext, new()
        {
            Vector3 position = door.m_bioScanAlign.position;

            if (!PhysicsUtil.SlamPos(ref position, Vector3.down, 4.0f, LayerManager.MASK_LEVELGEN, false, 0f, 1.0f))
            {
                return(null);
            }

            return(SetupBase <T>(block, door.Gate.ProgressionSourceArea, position, door.transform));
        }
Esempio n. 5
0
 void Start()
 {
     associatedDoor = this.GetComponentInParent <SecurityDoor>();
 }
 public static T SetupDoor <T>(CPBlock block, SecurityDoor door) where T : CPContext, new()
 => SetupDoorBase <T>(block, door);
 public static T SetupDoor <T>(uint id, SecurityDoor door) where T : CPContext, new()
 => SetupDoorBase <T>(ToBlock(id), door);
 public static CPContext SetupDoor(CPBlock block, SecurityDoor door)
 => SetupDoorBase <CPContext>(block, door);
 public static CPContext SetupDoor(uint id, SecurityDoor door)
 => SetupDoorBase <CPContext>(ToBlock(id), door);