Пример #1
0
 public SceneDoor(DTO.SceneComponent inputComponent, DTO.SceneDoor inputDoor, SceneExit inputExit) : base(inputComponent.identifier, inputComponent.fullName, ComponentType.Door)
 {
     this.requiredItemIdentifier = inputDoor.keyID;
     this.successMessage         = inputDoor.messageSuccess;
     this.failMessage            = inputDoor.messageFail;
     this.exit = inputExit;
 }
Пример #2
0
 public SceneDoor(string identifier, string fullName, string requiredItemIdentifier, string successMessage, string failMessage, string linkedScene, string exitID, string exitName) : base(identifier, fullName, ComponentType.Door)
 {
     this.requiredItemIdentifier = requiredItemIdentifier;
     this.successMessage         = successMessage;
     this.failMessage            = failMessage;
     this.exit = new SceneExit(exitID, exitName, linkedScene);
 }
Пример #3
0
        public bool addExit(SceneExit exit)
        {
            bool o;

            o = (from component in components where component.identifier == identifier select component).ToList().Count < 1;
            if (o)
            {
                components.Add(exit);
                forceExitListRefresh();
            }
            return(o);
        }