コード例 #1
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);
     }
 }
コード例 #2
0
ファイル: PLayer.cs プロジェクト: bearstampede/piccolo2d
 /// <summary>
 /// Constructs a new PLayer.
 /// </summary>
 public PLayer()
 {
     cameras = new PCameraList();
 }
コード例 #3
0
ファイル: PCameraList.cs プロジェクト: bearstampede/piccolo2d
 /// <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
ファイル: PCameraList.cs プロジェクト: bearstampede/piccolo2d
 /// <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);
 }
コード例 #5
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);
 }