ORK Framework  2.24.0
API Documentation
ORKFramework.Equipment Class Reference
Inheritance diagram for ORKFramework.Equipment:
ORKFramework.BaseLanguageData ORKFramework.BaseIndexData ORKFramework.BaseData ORKFramework.IBaseData ORKFramework.Armor ORKFramework.Weapon

Public Member Functions

 Equipment (string name)
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
string GetName (int lvl)
GUIContent GetContent (int lvl)
GameObject GetPrefab (int lvl, bool isPrefabView)
GameObject CreatePrefabInstance (int lvl, ref Vector3 offset, bool isPrefabView)
GameObject GetViewerPrefab (int lvl, bool isPrefabView)
GameObject GetViewerPrefabInstance (Transform parent, int lvl, bool isPrefabView)
Material GetViewerMaterial (int lvl, bool isPrefabView)
bool IsSingle ()
bool IsMulti ()
bool IsEquipable (bool[] ep)
bool CanEquip (int eID, Combatant combatant)
virtual bool CanCombatantEquip (int eID, Combatant combatant)
bool CheckLockedParts (int partID, Combatant combatant)
bool CheckAllowUnequip (int partID)
void GetBlockedViewers (ref List< int > blocked)
IPortrait GetPortrait (int typeID, int level)
- Public Member Functions inherited from ORKFramework.BaseLanguageData
 BaseLanguageData (string name)
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...

Public Attributes

int itemType = 0
ItemPrefab itemPrefab = new ItemPrefab()
AssetSource< GameObject > prefabViewPrefab = new AssetSource<GameObject>()
AssetSource< GameObject > viewerPrefab = new AssetSource<GameObject>()
AssetSource< GameObject > prefabViewViewerPrefab = new AssetSource<GameObject>()
string viewerName = ""
Vector3 viewerPosOff = Vector3.zero
Vector3 viewerRotOff = Vector3.zero
bool viewerLocalRotation = false
AssetSource< Material > viewerMaterial = new AssetSource<Material>()
AssetSource< Material > prefabViewMaterial = new AssetSource<Material>()
bool dropable = false
bool stealable = false
float sympathyChange = 0
bool oneTimeEquip = false
float inventorySpace = 1
bool inventorySpacePerStack = false
bool ownLimitQuantity = false
bool limitQuantity = false
int quantityLimit = 99
bool ownStackLimitQuantity = false
bool limitStackQuantity = false
int stackQuantityLimit = 99
bool overrideInventoryAddType = false
InventoryAddType inventoryAddType = InventoryAddType.Add
bool ownSelection = false
int selectionID = 0
PriceSettings price = new PriceSettings()
EquipRequirements equipRequirements = new EquipRequirements()
EquipType equipType = EquipType.Single
bool[] equipPart = new bool[ORK.EquipmentParts.Count]
bool[] blockPart = new bool[ORK.EquipmentParts.Count]
bool[] blockViewer = new bool[ORK.EquipmentParts.Count]
LevelUpType lvlType = LevelUpType.None
int expID = 0
bool ownNotifications = false
InventoryNotification addedNotification
InventoryNotification removedNotification
DurabilityNotification incrDurabNotification
DurabilityNotification decrDurabNotification
DurabilityNotification outwornNotification
bool ownConsoleLevelUp = false
ConsoleTextLevelUp consoleLevelUp
bool ownConsoleAdd = false
ConsoleTextInventory consoleAdd
bool ownConsoleRemove = false
ConsoleTextInventory consoleRemove
bool ownConsoleIncrDurab = false
ConsoleTextDurability consoleIncreaseDurability
bool ownConsoleDecrDurab = false
ConsoleTextDurability consoleDecreaseDurability
bool ownConsoleOutworn = false
ConsoleTextDurability consoleOutworn
TypePrefabViewPortrait[] portrait = new TypePrefabViewPortrait[0]
EquipmentLevel[] level = new EquipmentLevel[] {new EquipmentLevel()}
- Public Attributes inherited from ORKFramework.BaseLanguageData
LanguageInfo[] languageInfo


int QuantityLimit [get]
int StackLimit [get]
- Properties inherited from ORKFramework.BaseIndexData
virtual int RealID [get, set]

Additional Inherited Members

- Protected Attributes inherited from ORKFramework.BaseIndexData
int realID = 0

Member Function Documentation

override void ORKFramework.Equipment.SetData ( DataObject  data)

Sets the variables of the class using a ORKFramework.DataObject.

dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.