public InterfaceTerrainInfo(InterfaceTerrainTool interfaceTerrainTool, InterfaceTerrainGroundStyle interfaceTerrainGroundStyle, InterfaceTerrainGroundGrain interfaceTerrainGroundGrain) { this.interfaceTerrainTool = interfaceTerrainTool; this.interfaceTerrainType = InterfaceTerrainType.Ground; this.interfaceTerrainGroundStyle = interfaceTerrainGroundStyle; this.interfaceTerrainGroundGrain = interfaceTerrainGroundGrain; }
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; }
protected TerrainType InterfaceTerrainTypeToTerrainType(InterfaceTerrainType interfaceTerrainType) { TerrainType terrainType; switch (interfaceTerrainType) { case InterfaceTerrainType.Ground: terrainType = TerrainType.Ground; break; case InterfaceTerrainType.Roller: terrainType = TerrainType.Roller; break; default: Debug.LogWarning("Unknown terrainInfo.interfaceTerrainType [" + interfaceTerrainType + "]. Defaulting to InterfaceTerrainType.Ground"); goto case InterfaceTerrainType.Ground; } return(terrainType); }