Exemplo n.º 1
0
        public FoundationBuildUpdatePacket(float radius, int reformSize, bool veinBuried, float fade0)
        {
            Radius     = radius;
            ReformSize = reformSize;
            VeinBuried = veinBuried;
            Fade0      = fade0;
            BuildTool_Reform btr = GameMain.mainPlayer.controller?.actionBuild.reformTool;

            ReformType    = btr?.brushType ?? -1;
            ReformColor   = btr?.brushColor ?? -1;
            PlanetId      = GameMain.mainPlayer.planetId;
            ReformIndices = btr?.cursorIndices;
            GroundTestPos = new Float3(btr?.castGroundPos ?? Vector3.zero);
        }
Exemplo n.º 2
0
 public static void SizePatch(BuildTool_Reform __instance)
 {
     __instance.cursorIndices = new int[size * size];
     __instance.cursorPoints  = new UnityEngine.Vector3[size * size];
 }