ORK Framework  2.34.0
API Documentation
ORKFramework.Weapon Class Reference
Inheritance diagram for ORKFramework.Weapon:
ORKFramework.Equipment ORKFramework.IContent ORKFramework.BaseLanguageData ORKFramework.IContentSimple ORKFramework.BaseIndexData ORKFramework.IContentSimple ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

 Weapon (string name)
 
override bool CanCombatantEquip (int eID, Combatant combatant)
 
IContentSimple GetTypeContent ()
 
override string GetDescription ()
 
override string GetIconTextCode ()
 
string GetInfo (Combatant c)
 
override string FormatLevel (int value)
 
override string FormatQuantity (int value)
 
- Public Member Functions inherited from ORKFramework.Equipment
 Equipment (string name)
 
override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
KeyEventSetting GetCustomEvent (string eventKey)
 
string GetName (int lvl)
 
string GetShortName (int lvl)
 
GUIContent GetContent (int lvl)
 
EquipmentPrefabSettings GetPrefabSettings (int lvl)
 
bool IsEquipableOn (int partID, Combatant combatant, out EquipableOn equipPartSet, ref int partSetIndex)
 
bool IsEquipable (bool[] ep)
 
bool IsEquipableOn (int partID)
 
bool CanEquip (int eID, Combatant combatant)
 
IPortrait GetPortrait (IVariableSource variableSource, int typeID, int lvl)
 
IPortrait GetPortrait (int typeID, int lvl)
 
string FormatLevelPoints (int value)
 
- Public Member Functions inherited from ORKFramework.BaseLanguageData
 BaseLanguageData (string name)
 
void SetLanguageName (string name)
 
virtual string GetName ()
 
virtual string GetShortName ()
 
virtual Texture GetIcon ()
 
virtual GUIContent GetContent ()
 
- 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

bool ownAttack = false
 
ActiveAbilitySelection [] baseAttack
 
bool ownCounter = false
 
ActiveAbilitySelection counterAttack
 
bool ownAnims = false
 
int animationID = 0
 
bool ownAnimsBattle = false
 
int animationBattleID = 0
 
- Public Attributes inherited from ORKFramework.Equipment
int itemType = 0
 
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
 
bool ownNumberFormat = false
 
string levelFormat = "0"
 
string quantityFormat = "0"
 
EquipmentPrefabSettings prefabSettings = new EquipmentPrefabSettings()
 
PriceSettings price = new PriceSettings()
 
EquipRequirements equipRequirements = new EquipRequirements()
 
EquipableOn [] partSet = new EquipableOn[] { new EquipableOn() }
 
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]
 
KeyEventSetting [] customEvent = new KeyEventSetting[0]
 
EquipmentLevel [] level = new EquipmentLevel[] {new EquipmentLevel()}
 
- Public Attributes inherited from ORKFramework.BaseLanguageData
LanguageContent [] languageInfo
 

Properties

int TypeID [get]
 
- Properties inherited from ORKFramework.Equipment
int?? QuantityLimit [get]
 
int?? StackLimit [get]
 
- Properties inherited from ORKFramework.BaseLanguageData
virtual int ID [get]
 
- Properties inherited from ORKFramework.BaseIndexData
virtual int RealID [get, set]
 
- Properties inherited from ORKFramework.IContentSimple
int ID [get]
 
- Properties inherited from ORKFramework.IContent
int TypeID [get]
 

Additional Inherited Members

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