示例#1
0
        public vec2 DragonLordDeathGridCoord()
        {
            DyingDragonLordGridCoord.Apply(CurrentUnits, Output: Multigrid[0]);
            color packed = MultigridReduce(_BoundingTr.Apply);
            vec2  pos    = SimShader.unpack_vec2(packed);

            return(pos);
        }
示例#2
0
        /// <summary>
        /// Warning: This is not network synchronized. Should only affect local clients fake selection field or the information should be communicated over the network.
        /// </summary>
        public void SelectedUnitsBounds()
        {
            BoundingTr.Apply(CurrentData, Output: Multigrid[0]);
            color bound_tr = MultigridReduce(_BoundingTr.Apply);

            BoundingBl.Apply(CurrentData, Output: Multigrid[0]);
            color bound_bl = MultigridReduce(_BoundingBl.Apply);

            SelectedBound_TR = SimShader.unpack_vec2(bound_tr);
            SelectedBound_BL = SimShader.unpack_vec2(bound_bl);
        }