Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCursor Class Reference

Class to use as a display component for an item that needs a cursor More...

Inheritance diagram for essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCursor:
essentials.action.ItemFramework.Interactive.DisplayComponents.IItemDisplayComponent

Public Member Functions

delegate Vector3i CursorPositionResolver (Vector3d position, Vector3d direction)
 
 ItemCursor (CursorPositionResolver positionResolver, string cursorResource)
 
 ItemCursor (CursorPositionResolver positionResolver)
 

Detailed Description

Class to use as a display component for an item that needs a cursor

Constructor & Destructor Documentation

essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCursor.ItemCursor ( CursorPositionResolver  positionResolver,
string  cursorResource 
)
28  {
29  this.InjectDependencies();
30  _positionResolver = positionResolver;
31  _cursor = _worldObjectManager.Create(cursorResource ?? _resolver.Resolve(DEFAULT_CURSOR));
32  _cursor.CastShadow = false;
33  }
IWorldObject Create(string resource)
Create a new world object from a resource
bool CastShadow
Gets or sets a value indicating whether this pluginbase.Objects.WorldObjects.IWorldObject casts shado...
Definition: IWorldObject.cs:35
string Resolve(string resource)
Resolves the data.
essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCursor.ItemCursor ( CursorPositionResolver  positionResolver)
36  :this(positionResolver, null)
37  {}

Member Function Documentation

delegate Vector3i essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCursor.CursorPositionResolver ( Vector3d  position,
Vector3d  direction 
)

The documentation for this class was generated from the following file: