|
Elin Decompiled Documentation EA 23.249 Nightly
|
Public Member Functions | |
| void | SetOwner (Chara chara, bool deserialized=false) |
| void | Unequip (Thing thing, bool refresh=true) |
| void | UnequipAll (int idSlot) |
| void | Unequip (BodySlot slot, bool refresh=true) |
| bool | IsEquippable (Thing thing, BodySlot slot, bool text=true) |
| bool | IsTooHeavyToEquip (Thing thing) |
| void | UnqeuipIfTooHeavy (Thing t) |
| bool | Equip (Thing thing, BodySlot slot=null, bool msg=true) |
| void | AddBodyPart (int ele, Thing thing=null) |
| void | RefreshBodyParts () |
| void | RemoveBodyPart (int ele) |
| void | RemoveBodyPartAt (int idx) |
| BodySlot | GetSlot (Thing t, bool onlyEmpty=false, bool secondSlot=false) |
| BodySlot | GetSlot (int elementId, bool onlyEmpty=true, bool secondSlot=false) |
| bool | HasWeapon () |
| bool | HasElement (int idEle) |
| Thing | GetEquippedThing (int elementId) |
| int | GetWeight (bool armorOnly=false) |
| int | GetAttackIndex (Thing t) |
| int | GetMeleeDistance () |
| AttackStyle | GetAttackStyle () |
| int | GetAttackStyleElement (AttackStyle style) |
| int | GetSortVal (BodySlot slot) |
| void | SetBodyIndexText (BodySlot b, UIText t) |
| int | CountWeapons () |
Public Attributes | |
| Chara | owner |
| List< BodySlot > | slots = new List<BodySlot>() |
| BodySlot | slotMainHand |
| BodySlot | slotOffHand |
| BodySlot | slotRange |
Properties | |
| int[] | rawSlots [get] |
Properties inherited from EClass | |
| static Game | game [get] |
| static bool | AdvMode [get] |
| static Player | player [get] |
| static Chara | pc [get] |
| static UI | ui [get] |
| static Map | _map [get] |
| static Zone | _zone [get] |
| static FactionBranch | Branch [get] |
| static FactionBranch | BranchOrHomeBranch [get] |
| static Faction | Home [get] |
| static Faction | Wilds [get] |
| static Scene | scene [get] |
| static BaseGameScreen | screen [get] |
| static GameSetting | setting [get] |
| static GameData | gamedata [get] |
| static ColorProfile | Colors [get] |
| static World | world [get] |
| static SourceManager | sources [get] |
| static SourceManager | editorSources [get] |
| static SoundManager | Sound [get] |
| static CoreDebug | debug [get] |
Additional Inherited Members | |
Static Public Member Functions inherited from EClass | |
| static int | rndSeed (int a, int seed) |
| static int | rnd (long a) |
| static int | rnd (int a) |
| static int | curve (int _a, int start, int step, int rate=75) |
| static int | sqrt (int a) |
| static int | rndHalf (int a) |
| static float | rndf (float a) |
| static int | rndSqrt (int a) |
| static void | Wait (float a, Card c) |
| static void | Wait (float a, Point p) |
| static int | Bigger (int a, int b) |
| static int | Smaller (int a, int b) |
Static Public Attributes inherited from EClass | |
| static Core | core |
Definition at line 4 of file CharaBody.cs.
|
inline |
Definition at line 268 of file CharaBody.cs.
References item, slotMainHand, slotOffHand, slotRange, and slots.
Referenced by Chara.AddRandomBodyPart(), DNA.Apply(), Chara.ApplyRace(), CoreDebug.ChangeRace(), Player.CreateEquip(), Chara.ResetBody(), and SetOwner().
|
inline |
Definition at line 545 of file CharaBody.cs.
References Card.IsMeleeWeapon, slots, and BodySlot.thing.
Referenced by Element.GetCost().
Definition at line 186 of file CharaBody.cs.
References Card.AddCard(), Card.blessedState, Card.category, Faction.charaElements, EClass.core, Debug, BodySlot.elementId, Card.elements, Card.Evalue(), Chara.faction, GetSlot(), Card.HasElement(), Chara.isCreated, IsEquippable(), Core.IsGameStarted, Chara.IsPC, Trait.OnEquip(), ElementContainerFaction.OnEquip(), owner, Card.parent, EClass.pc, Card.PlaySound(), Card.RecalculateFOV(), LayerChara.Refresh(), Chara.Refresh(), Msg.Say(), Card.Say(), Card.SetBlessedState(), WidgetEquip.SetDirty(), LayerInventory.SetDirty(), ElementContainer.SetParent(), Chara.SetTempHand(), slotMainHand, slotOffHand, BodySlot.thing, Card.trait, and Unequip().
Referenced by CoreDebug.ChangeRace(), Chara.EQ_CAT(), Chara.EQ_ID(), InvOwner.ListInteractions(), InvOwner.OnDrag(), TraitMannequin.OnUse(), HotItemEQSet.Perform(), InvOwner.PutBack(), Chara.RestockEquip(), AI_Equip.Run(), and Chara.TryEquip().
|
inline |
Definition at line 434 of file CharaBody.cs.
References BodySlot.elementId, slots, Thing.source, and BodySlot.thing.
|
inline |
Definition at line 464 of file CharaBody.cs.
References BodySlot.elementId, Card.IsMeleeWeapon, slots, and BodySlot.thing.
Referenced by ActMelee.Attack(), Chara.CalcCastingChance(), Card.DamageHP(), AttackProcess.GetTwoHandEncBonus(), AttackProcess.Prepare(), WindowCharaMini.Refresh(), and WindowChara.RefreshProfile().
|
inline |
Definition at line 497 of file CharaBody.cs.
Referenced by AttackProcess.Perform().
|
inline |
Definition at line 409 of file CharaBody.cs.
References BodySlot.elementId, slots, and BodySlot.thing.
Referenced by QuestCrafter.CanUpdateOnTalk(), Card.GetLightRadius(), and CoreDebug.QuickStart().
|
inline |
Definition at line 451 of file CharaBody.cs.
References BodySlot.elementId, Card.Evalue(), owner, slots, and BodySlot.thing.
Referenced by GoalCombat.TryUseAbility().
|
inline |
Definition at line 368 of file CharaBody.cs.
References BodySlot.elementId, slots, and BodySlot.thing.
Definition at line 354 of file CharaBody.cs.
References Card.category, and GetSlot().
Referenced by Chara.EQ_CAT(), Chara.EQ_ID(), Equip(), GetSlot(), InvOwner.ListInteractions(), HotItemEQSet.Perform(), Chara.RefreshSpeed(), Chara.ShouldEquip(), and Chara.TryEquip().
|
inline |
Definition at line 507 of file CharaBody.cs.
References Chara.body, owner, and slots.
Referenced by LayerEquip.RefreshEquipment(), WidgetEquip.RefreshEquipment(), WindowChara.RefreshEquipment(), and ButtonElement.SetGrid().
|
inline |
Definition at line 421 of file CharaBody.cs.
References Card.ChildrenAndSelfWeight, BodySlot.elementId, slots, and BodySlot.thing.
Referenced by Chara.GetArmorSkill(), WindowCharaMini.Refresh(), and WindowChara.RefreshProfile().
|
inline |
Definition at line 397 of file CharaBody.cs.
References Card.elements, ElementContainer.Has(), slots, and BodySlot.thing.
Referenced by Chara.TickConditions().
|
inline |
Definition at line 385 of file CharaBody.cs.
References Card.IsWeapon, slots, and BodySlot.thing.
Referenced by Chara.RestockEquip().
Definition at line 110 of file CharaBody.cs.
References Card.blessedState, EClass.core, BodySlot.element, BodySlot.elementId, Card.HasElement(), Core.IsGameStarted, Chara.IsPC, IsTooHeavyToEquip(), owner, Msg.Say(), and BodySlot.thing.
Referenced by Equip(), InvOwner.OnDrag(), and Chara.ShouldEquip().
|
inline |
Definition at line 160 of file CharaBody.cs.
References Card.ChildrenAndSelfWeight, Card.HasElement(), and owner.
Referenced by Thing.CanAutoFire(), Chara.CanEquipRanged(), IsEquippable(), ActRanged.Perform(), and UnqeuipIfTooHeavy().
|
inline |
Definition at line 294 of file CharaBody.cs.
References BodySlot.elementId, slotMainHand, slotOffHand, slotRange, slots, and BodySlot.thing.
Referenced by DNA.Apply(), Chara.ApplyRace(), and Chara.ResetBody().
|
inline |
Definition at line 323 of file CharaBody.cs.
References BodySlot.elementId, RemoveBodyPartAt(), and slots.
Referenced by DNA.Apply(), Chara.ApplyRace(), CoreDebug.ChangeRace(), and Chara.ResetBody().
|
inline |
Definition at line 329 of file CharaBody.cs.
References slotMainHand, slotOffHand, slotRange, slots, BodySlot.thing, and Unequip().
Referenced by RemoveBodyPart(), and Chara.RemoveLastBodyPart().
Definition at line 512 of file CharaBody.cs.
References BodySlot.element, BodySlot.elementId, BodySlot.indexPart, UIText.SetText(), and slots.
Referenced by ButtonGrid.SetBodySlot().
|
inline |
Definition at line 18 of file CharaBody.cs.
References AddBodyPart(), Card.elements, Thing.isEquipped, Trait.OnEquip(), owner, rawSlots, ElementContainer.SetParent(), slots, Card.things, and Card.trait.
Referenced by Chara.OnCreate(), and Chara.OnDeserialized().
|
inline |
Definition at line 68 of file CharaBody.cs.
References Faction.charaElements, EClass.core, BodySlot.elementId, Card.elements, Chara.faction, Card.HasElement(), Chara.isCreated, Core.IsGameStarted, Chara.IsPC, Trait.OnUnequip(), ElementContainerFaction.OnUnequip(), owner, EClass.pc, Card.RecalculateFOV(), LayerChara.Refresh(), Chara.Refresh(), Card.Say(), WidgetEquip.SetDirty(), LayerInventory.SetDirty(), ElementContainer.SetParent(), BodySlot.thing, and Card.trait.
|
inline |
Definition at line 49 of file CharaBody.cs.
References Card.c_equippedSlot, Thing.isEquipped, slots, and Unequip().
Referenced by CoreDebug.ChangeRace(), Equip(), InvOwner.Grab(), Player.OnStartNewGame(), HotItemEQSet.Perform(), RemoveBodyPartAt(), Card.RemoveThing(), Unequip(), UnequipAll(), and UnqeuipIfTooHeavy().
|
inline |
Definition at line 57 of file CharaBody.cs.
References BodySlot.elementId, slots, and Unequip().
Referenced by Feat.Apply().
|
inline |
Definition at line 169 of file CharaBody.cs.
References Thing.isEquipped, Chara.IsPC, IsTooHeavyToEquip(), owner, Card.Say(), slots, Chara.TryEquip(), and Unequip().
Referenced by ActEffect.Proc().
| Chara CharaBody.owner |
Definition at line 6 of file CharaBody.cs.
Referenced by Equip(), GetMeleeDistance(), GetSortVal(), IsEquippable(), IsTooHeavyToEquip(), SetOwner(), Unequip(), and UnqeuipIfTooHeavy().
| BodySlot CharaBody.slotMainHand |
Definition at line 10 of file CharaBody.cs.
Referenced by AddBodyPart(), Equip(), CharaActorPCC.OnRender(), RefreshBodyParts(), RemoveBodyPartAt(), Chara.RestockEquip(), Chara.ShouldEquip(), and Chara.TryEquip().
| BodySlot CharaBody.slotOffHand |
Definition at line 12 of file CharaBody.cs.
Referenced by AddBodyPart(), Equip(), CharaActorPCC.OnRender(), RefreshBodyParts(), and RemoveBodyPartAt().
| BodySlot CharaBody.slotRange |
Definition at line 14 of file CharaBody.cs.
Referenced by AddBodyPart(), RefreshBodyParts(), and RemoveBodyPartAt().
Definition at line 8 of file CharaBody.cs.
Referenced by Thing.AddAttackEvaluation(), AddBodyPart(), ActMelee.Attack(), CoreDebug.ChangeRace(), CountWeapons(), DragItemCard.DragInfo.DragInfo(), GetAttackIndex(), GetAttackStyle(), GetEquippedThing(), GetMeleeDistance(), GetSlot(), GetSortVal(), GetWeight(), HasElement(), HasWeapon(), TraitFoodEggFertilized.Incubate(), Chara.OnSerializing(), Player.OnStartNewGame(), TraitAmmo.OnUse(), TraitMannequin.OnUse(), HotItemEQSet.Perform(), AttackProcess.ProcShieldEncs(), RefreshBodyParts(), WindowCharaMini.RefreshEquipment(), LayerEquip.RefreshEquipment(), WidgetEquip.RefreshEquipment(), WindowChara.RefreshEquipment(), HotItemEQSet.Register(), RemoveBodyPart(), RemoveBodyPartAt(), Chara.RemoveLastBodyPart(), Chara.ResetBody(), SetBodyIndexText(), ButtonElement.SetGrid(), SetOwner(), Unequip(), UnequipAll(), UnqeuipIfTooHeavy(), and Element.BonusInfo.WriteNote().
|
get |
Definition at line 16 of file CharaBody.cs.
Referenced by SetOwner().