API:PropTool

From HACKED BY DEL.ICIO.US!
Jump to: navigation, search

The PropTool class is a class from the root namespace (Assembly-CSharp.dll) that inherits the ToolBase class. It represents the tool in use to place props.


Properties

Property Type Description
Field or Variable m_angle float The prop placement angle.
Field or Variable m_brush Texture2D The current brush, if used.
Field or Variable m_brushSize float The current brush size, if used.
Field or Variable m_buildCursor CursorInfo
Field or Variable m_mode PropTool.Mode Whether the tool is in brush mode or single mode.
Field or Variable m_prefab PropInfo The prop prefab currently grabbed by the tool.
Field or Variable m_strength float The brush strength, if used.

Public Methods

Method Return Type Description
Method or Function GetErrors() ToolBase.ToolErrors
Method or Function OnEnable() void
Method or Function OnDisable() void
Method or Function OnToolGUI(Event e) void
Method or Function OnToolUpdate() void
Method or Function OnToolLateUpdate() void
Method or Function RenderGeometry(RenderManager.CameraInfo cameraInfo) void
Method or Function RenderOverlay(RenderManager.CameraInfo cameraInfo) void
Method or Function SimulationStep() void

Static Methods

Method Return Type Description
Method or Function CheckOverlayAlpha(PropInfo info, float scale, float alpha) void
Method or Function CheckPlacementErrors(PropInfo info, Vector3 position, bool fixedHeight, ushort id, ulong[] collidingSegmentBuffer) ToolBase.ToolErrors
Method or Function DispatchPlacementEffect(Vector3 pos, bool bulldozing) void
Method or Function RenderOverlay(RenderManager.CameraInfo cameraInfo, PropInfo info, Vector3 position, float scale, float angle, Color color) void

Sub-Enumerations

PropTool.Mode

Members
Api enum.gif Brush
Api enum.gif Single