veloren/common/src/comp/mod.rs
juliancoffee af396aa8dd Add Gender marker for body
- Add gender() method on body, which is derived from body_type
- Expose it in ChatContext so that chat i18n can use it.
2024-02-03 18:58:45 +02:00

112 lines
3.1 KiB
Rust

pub mod ability;
mod admin;
pub mod agent;
pub mod anchor;
pub mod aura;
pub mod beam;
pub mod body;
pub mod buff;
pub mod character_state;
pub mod chat;
pub mod combo;
pub mod compass;
pub mod controller;
pub mod dialogue;
mod energy;
pub mod fluid_dynamics;
pub mod group;
mod health;
mod inputs;
pub mod inventory;
pub mod invite;
mod last;
mod location;
pub mod loot_owner;
pub mod melee;
pub mod misc;
pub mod ori;
pub mod pet;
mod phys;
mod player;
pub mod poise;
pub mod presence;
pub mod projectile;
pub mod shockwave;
pub mod skillset;
mod stats;
pub mod teleport;
pub mod visual;
// Reexports
pub use self::{
ability::{
Ability, AbilityInput, ActiveAbilities, CharacterAbility, CharacterAbilityType, Stance,
BASE_ABILITY_LIMIT,
},
admin::{Admin, AdminRole},
agent::{
Agent, Alignment, Behavior, BehaviorCapability, BehaviorState, PidController,
TradingBehavior,
},
anchor::Anchor,
aura::{Aura, AuraChange, AuraKind, Auras},
beam::Beam,
body::{
arthropod, biped_large, biped_small, bird_large, bird_medium, crustacean, dragon,
fish_medium, fish_small, golem, humanoid, item_drop, object, quadruped_low,
quadruped_medium, quadruped_small, ship, theropod, AllBodies, Body, BodyData, Gender,
},
buff::{
Buff, BuffCategory, BuffChange, BuffData, BuffEffect, BuffKey, BuffKind, BuffSource, Buffs,
ModifierKind,
},
character_state::{CharacterActivity, CharacterState, StateUpdate},
chat::{
ChatMode, ChatMsg, ChatType, Faction, SpeechBubble, SpeechBubbleType, UnresolvedChatMsg,
},
combo::Combo,
controller::{
Climb, ControlAction, ControlEvent, Controller, ControllerInputs, GroupManip, InputAttr,
InputKind, InventoryAction, InventoryEvent, InventoryManip, UtteranceKind,
},
energy::Energy,
fluid_dynamics::Fluid,
group::Group,
inputs::CanBuild,
inventory::{
item::{
self,
item_key::ItemKey,
tool::{self, AbilityItem},
Item, ItemConfig, ItemDrops,
},
slot, CollectFailedReason, Inventory, InventoryUpdate, InventoryUpdateEvent,
},
last::Last,
location::{MapMarker, MapMarkerChange, MapMarkerUpdate, Waypoint, WaypointArea},
loot_owner::LootOwner,
melee::{Melee, MeleeConstructor, MeleeConstructorKind},
misc::Object,
ori::Ori,
pet::Pet,
phys::{
Collider, Density, ForceUpdate, Immovable, Mass, PhysicsState, Pos, PosVelOriDefer,
PreviousPhysCache, Scale, Sticky, Vel,
},
player::{AliasError, DisconnectReason, Player, MAX_ALIAS_LEN},
poise::{Poise, PoiseChange, PoiseState},
presence::{Presence, PresenceKind},
projectile::{Projectile, ProjectileConstructor},
shockwave::{Shockwave, ShockwaveHitEntities},
skillset::{
skills::{self, Skill},
SkillGroup, SkillGroupKind, SkillSet,
},
stats::{Stats, StatsModifier},
teleport::Teleporting,
visual::{LightAnimation, LightEmitter},
};
pub use common_i18n::{Content, LocalizationArg};
pub use health::{Health, HealthChange};