Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MadsWedendahlKruse/nat20
/ functions
Functions
1,582 in github.com/MadsWedendahlKruse/nat20
⨍
Functions
1,582
◇
Types & classes
444
↓ 4 callers
Method
add_flat_modifier
(&mut self, source: ModifierSource, value: T)
core/src/components/speed.rs:35
↓ 4 callers
Function
add_item
(world: &mut World, entity: Entity, item: T)
core/src/systems/inventory.rs:44
↓ 4 callers
Method
add_modifier_set
(&mut self, other: &ModifierSet)
core/src/components/modifier.rs:111
↓ 4 callers
Method
add_path
(&mut self, path: &WorldPath, col: T)
gui/src/render/world/line.rs:184
↓ 4 callers
Function
advance_time
(game_state: &mut GameState, entity: Entity, time_step: TimeStep)
core/src/systems/time.rs:26
↓ 4 callers
Function
apply_level_up_decision
( game_state: &mut GameState, entity: Entity, levels: u8, decisions: Vec<LevelUpDecision>, )
core/src/systems/level_up.rs:631
↓ 4 callers
Method
assert_d20_advantage
( &self, game_state: &GameState, kind: &D20CheckKind, source: &ModifierSource,
core/src/test_utils/creature_probe.rs:270
↓ 4 callers
Function
boots
()
core/src/test_utils/fixtures.rs:15
↓ 4 callers
Function
break_concentration
(game_state: &mut GameState, target: Entity)
core/src/systems/spells.rs:251
↓ 4 callers
Method
class_level
(&self, class: &ClassId)
core/src/components/level.rs:157
↓ 4 callers
Method
concentration_tracker_mut
(&mut self)
core/src/components/spells/spellbook.rs:728
↓ 4 callers
Method
current_uses
(&self)
core/src/components/resource.rs:386
↓ 4 callers
Function
damage
( game_state: &mut GameState, target: Entity, damage_roll_result: &mut DamageRollResult, )
core/src/systems/health.rs:53
↓ 4 callers
Function
effects_mut
(world: &mut World, entity: Entity)
core/src/systems/effects.rs:29
↓ 4 callers
Function
entities_in_shape
( world: &World, shape: &dyn Shape, shape_pose: &Isometry3<f32>, )
core/src/systems/geometry.rs:928
↓ 4 callers
Function
equip_in_slot
( game_state: &mut GameState, entity: Entity, slot: &EquipmentSlot, equipment: T, )
core/src/systems/loadout.rs:31
↓ 4 callers
Method
evaluate
( &self, world: &World, entity: Entity, context: &ActionContext, varia
core/src/registry/serialize/targeting.rs:161
↓ 4 callers
Method
evaluate
( &self, game_state: &mut GameState, entity: Entity, effect_id: &EffectId,
core/src/registry/serialize/effect.rs:407
↓ 4 callers
Method
flags
(&self)
core/src/components/spells/spell.rs:119
↓ 4 callers
Method
get
(&self, ability: &Ability)
core/src/components/ability.rs:164
↓ 4 callers
Method
get_mut
(&mut self, id: &ResourceId)
core/src/components/resource.rs:746
↓ 4 callers
Function
ground_position
( world_geometry: &WorldGeometry, position: &Point3<f32>, )
core/src/systems/geometry.rs:824
↓ 4 callers
Method
handle_event
(&mut self, event: &WindowEvent, imgui_wants_mouse: bool)
gui/src/render/world/camera.rs:149
↓ 4 callers
Method
heal
(&mut self, amount: u32)
core/src/components/health/hit_points.rs:114
↓ 4 callers
Method
id
(&self)
core/src/components/spells/spell.rs:99
↓ 4 callers
Function
is_player_controlled
(world: &World, entity: Entity)
core/src/systems/ai.rs:17
↓ 4 callers
Function
line_of_sight_point_point
( world: &World, world_geometry: &WorldGeometry, from: &Point3<f32>, to: &Point3<f32>, tra
core/src/systems/geometry.rs:542
↓ 4 callers
Function
loadout_mut
(world: &mut World, entity: Entity)
core/src/systems/loadout.rs:27
↓ 4 callers
Method
max_roll
(&self)
core/src/components/dice.rs:113
↓ 4 callers
Method
min_roll
(&self)
core/src/components/dice.rs:109
↓ 4 callers
Function
navmesh_nearest_point
( world_geometry: &WorldGeometry, point: Point3<f32>, )
core/src/systems/geometry.rs:884
↓ 4 callers
Method
normal
(&self)
core/src/components/actions/targeting.rs:767
↓ 4 callers
Method
parry3d_shape
( &self, world: &World, actor: Entity, fixed_on_actor: bool, target_po
core/src/components/actions/targeting.rs:345
↓ 4 callers
Method
parse_expression
expression := term (('+' | '-') term)
core/src/registry/serialize/parser.rs:322
↓ 4 callers
Function
path
( game_state: &GameState, entity: Entity, goal: &Point3<f32>, allow_partial: bool, trim_to
core/src/systems/movement.rs:76
↓ 4 callers
Method
path
(&self, start: Point3<f32>, end: Point3<f32>)
core/src/engine/geometry.rs:76
↓ 4 callers
Method
pending_events_mut
(&mut self)
core/src/engine/interaction.rs:113
↓ 4 callers
Method
push_range
(&mut self, mode: LineMode, first: i32, count: i32)
gui/src/render/world/line.rs:147
↓ 4 callers
Method
queue_prompt
(&mut self, prompt: ActionPrompt, front: bool)
core/src/engine/interaction.rs:60
↓ 4 callers
Method
range
TODO: Can this be done in a nicer way? Returns the normal range and the long range of the weapon. When attacking a target beyond normal range, you hav
core/src/components/items/equipment/weapon.rs:383
↓ 4 callers
Method
ready
(&self)
core/src/components/actions/execution.rs:291
↓ 4 callers
Function
recharge
(world: &mut World, entity: Entity, rest_type: &RechargeRule)
core/src/systems/resources.rs:23
↓ 4 callers
Method
record_movement
(&mut self, distance: Length)
core/src/components/speed.rs:73
↓ 4 callers
Function
remove_effect
( game_state: &mut GameState, entity: Entity, instance_id: &EffectInstanceId, )
core/src/systems/effects.rs:163
↓ 4 callers
Method
remove_modifier
(&mut self, source: &ModifierSource)
core/src/components/d20.rs:295
↓ 4 callers
Method
render
(&self, ui: &imgui::Ui)
gui/src/windows/level_up.rs:938
↓ 4 callers
Function
render_event_description
(ui: &imgui::Ui, event: &Event)
gui/src/render/ui/engine.rs:77
↓ 4 callers
Method
render_with_context
( &self, ui: &imgui::Ui, (game_state, mode): (&GameState, &CreatureRenderMode), )
gui/src/render/ui/entities.rs:50
↓ 4 callers
Method
required_slots
(&self)
core/src/components/items/equipment/loadout.rs:81
↓ 4 callers
Method
round
(&self)
core/src/engine/encounter.rs:235
↓ 4 callers
Function
scoped_attack_damage_roll
( scope: DamageRollScope, provider_name: &'static str, )
core/src/registry/serialize/dice.rs:47
↓ 4 callers
Function
scoped_attack_roll
(scope: AttackRollScope, provider_name: &'static str)
core/src/registry/serialize/d20.rs:39
↓ 4 callers
Function
scoped_attack_targeting
( scope: TargetingScope, provider_name: &'static str, )
core/src/registry/serialize/targeting.rs:112
↓ 4 callers
Method
set_temp
Sets temporary hit points. If the new value is higher than the current temp HP, replaces it. If lower or equal, does nothing (DND 5e rules).
core/src/components/health/hit_points.rs:132
↓ 4 callers
Function
spawn_entity
( game_state: &mut GameState, components: impl DynamicBundle, id: Option<Entity>,
core/src/test_utils/fixtures.rs:56
↓ 4 callers
Function
targeting_context_data
(world: &World, action_data: &ActionData)
core/src/systems/actions.rs:502
↓ 4 callers
Method
time_mode
(mut self, time_mode: TimeMode)
core/src/test_utils/scenario.rs:205
↓ 4 callers
Method
total
(&self)
core/src/components/dice.rs:130
↓ 3 callers
Function
action_usable
( world: &World, entity: Entity, action_id: &ActionId, // TODO: Is context really not needed h
core/src/systems/actions.rs:134
↓ 3 callers
Method
actors
(&self)
core/src/engine/action_prompt.rs:39
↓ 3 callers
Function
add_actions
(world: &mut World, entity: Entity, actions: &[ActionId])
core/src/systems/actions.rs:48
↓ 3 callers
Method
add_crit_threshold_reduction
(&mut self, source: ModifierSource, reduction: u8)
core/src/components/d20.rs:116
↓ 3 callers
Function
add_effect_template
( game_state: &mut GameState, applier: Entity, target: Entity, source: ModifierSource, tem
core/src/systems/effects.rs:33
↓ 3 callers
Method
add_modifier
(&mut self, source: ModifierSource, value: T)
core/src/components/dice.rs:119
↓ 3 callers
Method
add_uses
(&mut self, amount: u8)
core/src/components/resource.rs:163
↓ 3 callers
Method
advance
( &mut self, game_state: &mut GameState, decision: &LevelUpDecision, )
core/src/systems/level_up.rs:157
↓ 3 callers
Method
all_classes
(&self)
core/src/components/level.rs:161
↓ 3 callers
Function
apply_class_base
( game_state: &mut GameState, entity: Entity, class_base: &ClassBase, id: ClassIdentifier,
core/src/systems/class.rs:158
↓ 3 callers
Method
as_turns
(&self)
core/src/components/time.rs:56
↓ 3 callers
Method
assert_d20_crit_threshold_reduction
( &self, game_state: &GameState, kind: &D20CheckKind, source: &ModifierSource,
core/src/test_utils/creature_probe.rs:295
↓ 3 callers
Method
assert_no_effect
(&self, game_state: &GameState, effect_id: impl Into<EffectId>)
core/src/test_utils/creature_probe.rs:195
↓ 3 callers
Function
attitude_from_to
(world: &World, source: Entity, destination: Entity)
core/src/systems/factions.rs:20
↓ 3 callers
Function
available_reactions_to_event
( game_state: &GameState, reactor: Entity, event: &Event, skip_checks: &[ActionUsabilityCheck]
core/src/systems/actions.rs:511
↓ 3 callers
Function
can_afford
( world: &World, entity: Entity, cost: &ResourceAmountMap, )
core/src/systems/resources.rs:38
↓ 3 callers
Function
cast_ice_knife
(scenario: &mut Scenario, attack_outcome: D20CheckOutcome, slot_level: u8)
core/tests/spell_ice_knife.rs:45
↓ 3 callers
Method
class_state_mut
( &mut self, class_and_subclass: &ClassAndSubclass, )
core/src/components/spells/spellbook.rs:293
↓ 3 callers
Method
clear_forced_outcome
(&mut self)
core/src/components/d20.rs:153
↓ 3 callers
Method
clear_temp
(&mut self, source: &ModifierSource)
core/src/components/health/hit_points.rs:145
↓ 3 callers
Method
collect_hooks
Collect clones of all hook `Arc`s matching `get_hook`. Callers can then drop the shared borrow on the world and invoke the hooks with `&mut GameState`
core/src/components/effects/effect_manager.rs:129
↓ 3 callers
Method
context_filter
( &mut self, world: &World, filter_fn: impl Fn(&ActionContext, &ResourceAmountMap) ->
core/src/components/actions/action_builder.rs:117
↓ 3 callers
Method
d20_result_mut
(&mut self)
core/src/systems/d20.rs:137
↓ 3 callers
Method
damage_dealt
( mut self, target: impl Into<String>, damage: DamageComponent, source: Damage
core/src/test_utils/scenario.rs:537
↓ 3 callers
Method
end_turn
(&mut self, game_state: &mut GameState, entity: Entity)
core/src/engine/encounter.rs:124
↓ 3 callers
Method
equip
(&mut self, equipment: T)
core/src/components/items/equipment/loadout.rs:273
↓ 3 callers
Method
expect_char
(&mut self, expected: char)
core/src/registry/serialize/parser.rs:202
↓ 3 callers
Method
fn_name
(&self)
core/src/scripts/script.rs:138
↓ 3 callers
Function
force_saving_throws
(scenario: &mut Scenario, outcome: D20CheckOutcome)
core/tests/spell_ice_knife.rs:38
↓ 3 callers
Function
get_faction
(faction_id: &FactionId)
core/src/systems/factions.rs:13
↓ 3 callers
Function
get_height
(world: &World, entity: Entity)
core/src/systems/geometry.rs:53
↓ 3 callers
Method
get_potential_reactors
(&self, actor: Entity)
core/src/engine/game_state.rs:574
↓ 3 callers
Method
has_property
(&self, property: &WeaponProperties)
core/src/components/items/equipment/weapon.rs:288
↓ 3 callers
Function
ice_knife_scenario
TODO: One test per spell is perhaps a bit overkill? Need to figure out how to best organize these... Wizard plus two goblins standing within 5 feet of
core/tests/spell_ice_knife.rs:19
↓ 3 callers
Method
instantiate
( &self, game_state: &GameState, action: &ActionData, target: Entity, )
core/src/systems/geometry.rs:1042
↓ 3 callers
Function
is_action_condition_type
( damage_roll_result: &DamageRollResult, predicate: fn(&ActionCondition) -> bool, )
core/src/scripts/script_api.rs:301
↓ 3 callers
Function
is_alive
(world: &World, entity: Entity)
core/src/systems/health.rs:248
↓ 3 callers
Method
is_permanent
(&self)
core/src/components/effects/effect.rs:192
↓ 3 callers
Method
is_wielding_weapon_with_both_hands
(&self, weapon_kind: &WeaponKind)
core/src/components/items/equipment/loadout.rs:327
↓ 3 callers
Function
item_rarity_color
(rarity: &ItemRarity)
gui/src/render/ui/text.rs:25
↓ 3 callers
Method
known_spells_for_class
Computed known spells for a class: - Learned: learned_spells (+ cantrips, always_prepared) - EntireClassList: all spells from class list up to max_spe
core/src/components/spells/spellbook.rs:303
↓ 3 callers
Function
leaf_label
Helper: last segment of a key for a nice leaf label
gui/src/state/settings.rs:298
← previous
next →
201–300 of 1,582, ranked by callers