Beispiel #1
0
        public VehicleDoor this[VehicleDoorIndex index]
        {
            get
            {
                if (!_vehicleDoors.TryGetValue(index, out VehicleDoor vehicleDoor))
                {
                    vehicleDoor = new VehicleDoor(_owner, index);
                    _vehicleDoors.Add(index, vehicleDoor);
                }

                return(vehicleDoor);
            }
        }
Beispiel #2
0
 public VehicleDoor this[VehicleDoorIndex index]
 {
     get
     {
         VehicleDoor door = null;
         if (!this._vehicleDoors.TryGetValue(index, out door))
         {
             door = new VehicleDoor(this._owner, index);
             this._vehicleDoors.Add(index, door);
         }
         return(door);
     }
 }