// Token: 0x06001998 RID: 6552 RVA: 0x00062EDC File Offset: 0x000610DC
 protected CullGridSetup(global::CullGridSetup copyFrom)
 {
     this.cellSquareDimension  = copyFrom.cellSquareDimension;
     this.cellsWide            = copyFrom.cellsWide;
     this.cellsTall            = copyFrom.cellsTall;
     this.groupBegin           = copyFrom.groupBegin;
     this.gatheringCellsWide   = copyFrom.gatheringCellsWide;
     this.gatheringCellsTall   = copyFrom.gatheringCellsTall;
     this.gatheringCellsCenter = copyFrom.gatheringCellsCenter;
     this.gatheringCellsBits   = (int[])copyFrom.gatheringCellsBits.Clone();
 }
Ejemplo n.º 2
0
    // Token: 0x060019A0 RID: 6560 RVA: 0x00063308 File Offset: 0x00061508
    private Vector3 GetCenterSetup(int cell)
    {
        global::CullGridSetup cullGridSetup = this.setup;

        return(base.transform.position + base.transform.forward * (((float)(cell / cullGridSetup.cellsWide) - ((float)cullGridSetup.cellsTall / 2f - (float)(2 - (cullGridSetup.cellsTall & 1)) / 2f)) * (float)cullGridSetup.cellSquareDimension) + base.transform.right * (((float)(cell % cullGridSetup.cellsWide) - ((float)cullGridSetup.cellsWide / 2f - (float)(2 - (cullGridSetup.cellsWide & 1)) / 2f)) * (float)cullGridSetup.cellSquareDimension));
    }