コード例 #1
0
ファイル: JRoomContentConfig.cs プロジェクト: c2001324/Leo
 public JBatchContentElement(JBatchContentElement other)
 {
     type = other.type;
     if (other.spawnPoints != null)
     {
         spawnPoints = new string[other.spawnPoints.Length];
         for (int i = 0; i < spawnPoints.Length; i++)
         {
             spawnPoints[i] = other.spawnPoints[i];
         }
     }
     maxCount = other.maxCount;
     if (other.entityPools != null)
     {
         entityPools = new JEntityPool[other.entityPools.Length];
         for (int i = 0; i < entityPools.Length; i++)
         {
             entityPools[i] = new JEntityPool(other.entityPools[i]);
         }
     }
 }
コード例 #2
0
ファイル: JRoomContentConfig.cs プロジェクト: c2001324/Leo
 public JEntityPool(JEntityPool other)
 {
     count      = new JIntRange(other.count.min, other.count.max);
     entityName = other.entityName;
 }