Ejemplo n.º 1
0
        public InterfaceTerrainInfo(InterfaceTerrainTool interfaceTerrainTool, InterfaceTerrainGroundStyle interfaceTerrainGroundStyle, InterfaceTerrainGroundGrain interfaceTerrainGroundGrain)
        {
            this.interfaceTerrainTool = interfaceTerrainTool;

            this.interfaceTerrainType = InterfaceTerrainType.Ground;

            this.interfaceTerrainGroundStyle = interfaceTerrainGroundStyle;
            this.interfaceTerrainGroundGrain = interfaceTerrainGroundGrain;
        }
Ejemplo n.º 2
0
        public InterfaceTerrainInfo(InterfaceTerrainTool interfaceTerrainTool, InterfaceTerrainRollerStyle interfaceTerrainRollerStyle, InterfaceTerrainRollerRotationDirection interfaceTerrainRollerRotationDirection, InterfaceTerrainRollerRotationSpeed interfaceTerrainRollerRotationSpeed, InterfaceTerrainRollerSpacing interfaceTerrainRollerSpacing)
        {
            this.interfaceTerrainTool = interfaceTerrainTool;

            this.interfaceTerrainType = InterfaceTerrainType.Roller;

            this.interfaceTerrainRollerStyle             = interfaceTerrainRollerStyle;
            this.interfaceTerrainRollerRotationDirection = interfaceTerrainRollerRotationDirection;
            this.interfaceTerrainRollerRotationSpeed     = interfaceTerrainRollerRotationSpeed;
            this.interfaceTerrainRollerSpacing           = interfaceTerrainRollerSpacing;
        }
Ejemplo n.º 3
0
    protected string InterfaceTerrainToolToText(InterfaceTerrainTool t)
    {
        string s = "";

        switch (t)
        {
        case InterfaceTerrainTool.StraightLine:                 s = "Straight line";            break;

        case InterfaceTerrainTool.CurveBezierCubic:             s = "Curve bezier cubic";       break;

        case InterfaceTerrainTool.CurveCircularArc:             s = "Curve circular arc";       break;

        default:                                                                                s = "???";                                      break;
        }
        return(s);
    }
Ejemplo n.º 4
0
    protected TerrainBlueprintType InterfaceTerrainToolToTerrainBlueprintType(InterfaceTerrainTool interfaceTerrainTool)
    {
        TerrainBlueprintType terrainBlueprintType;

        switch (interfaceTerrainTool)
        {
        case InterfaceTerrainTool.StraightLine:                 terrainBlueprintType = TerrainBlueprintType.StraightLine;               break;

        case InterfaceTerrainTool.CurveBezierCubic:             terrainBlueprintType = TerrainBlueprintType.CurveBezierCubic;   break;

        case InterfaceTerrainTool.CurveCircularArc:             terrainBlueprintType = TerrainBlueprintType.CurveCircularArc;   break;

        default:
            Debug.LogWarning("Unknown terrainTool [" + terrainTool + "]. Defaulting to InterfaceTerrainTool.StraightLine");
            goto case InterfaceTerrainTool.StraightLine;
        }

        return(terrainBlueprintType);
    }