Beispiel #1
0
 public void CreateAllRange()
 {
     if (this.m_AllRange != null)
     {
         return;
     }
     this.m_AllRange = new TacticsSceneCamera.AllRange();
 }
Beispiel #2
0
 public static void Create(this TacticsSceneCamera.AllRangeObj self, TacticsSceneCamera.AllRange data)
 {
     if (data.groups == null)
     {
         return;
     }
     self.data   = data;
     self.groups = new TacticsSceneCamera.AllRangeObj.GroupObj[data.groups.Length];
     for (int index = 0; index < data.groups.Length; ++index)
     {
         TacticsSceneCamera.AllRangeObj.GroupObj groupObj = new TacticsSceneCamera.AllRangeObj.GroupObj();
         groupObj.data  = data.groups[index];
         groupObj.state = 0;
         groupObj.alpha = 1f;
         groupObj.renders.AddRange((IEnumerable <TacticsSceneCamera.RenderSet>)TacticsSceneCamera.GetRenderSets(groupObj.data.gobjs, (string[])null));
         self.groups[index] = groupObj;
     }
 }
Beispiel #3
0
 public static TacticsSceneCamera.AllRange.Group GetGroup(this TacticsSceneCamera.AllRange self, GameObject value)
 {
     if (self.groups != null)
     {
         for (int index1 = 0; index1 < self.groups.Length; ++index1)
         {
             if (self.groups[index1].gobjs != null)
             {
                 for (int index2 = 0; index2 < self.groups[index1].gobjs.Length; ++index2)
                 {
                     if (Object.op_Equality((Object)self.groups[index1].gobjs[index2], (Object)value))
                     {
                         return(self.groups[index1]);
                     }
                 }
             }
         }
     }
     return((TacticsSceneCamera.AllRange.Group)null);
 }