/// <summary>
 /// Initializes a new instance of the PCameraList class that contains cameras copied
 /// from the specified list and that has the same initial capacity as the number
 /// of cameras copied.
 /// </summary>
 /// <param name="list">The list whose cameras are copied to the new list.</param>
 public PCameraList(PCameraList list)
 {
     foreach (PCamera camera in list)
     {
         List.Add(camera);
     }
 }
예제 #2
0
 /// <summary>
 /// Constructs a new PLayer.
 /// </summary>
 public PLayer()
 {
     cameras = new PCameraList();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the PCameraList class that contains cameras copied
 /// from the specified list and that has the same initial capacity as the number
 /// of cameras copied.
 /// </summary>
 /// <param name="list">The list whose cameras are copied to the new list.</param>
 public PCameraList(PCameraList list)
 {
     foreach(PCamera camera in list) {
         List.Add(camera);
     }
 }
예제 #4
0
 /// <summary>
 /// Adds the cameras of the given list to the end of this list.
 /// </summary>
 /// <param name="list">
 /// The list whose cameras should be added to the end of this list.
 /// </param>
 public void AddRange(PCameraList list)
 {
     InnerList.AddRange(list);
 }
 /// <summary>
 /// Adds the cameras of the given list to the end of this list.
 /// </summary>
 /// <param name="list">
 /// The list whose cameras should be added to the end of this list.
 /// </param>
 public void AddRange(PCameraList list)
 {
     InnerList.AddRange(list);
 }