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
↓ 262 callers
Method
to_string
(&self)
core/src/components/id.rs:196
↓ 148 callers
Method
iter
(&self)
core/src/components/resource.rs:750
↓ 146 callers
Method
push
(&mut self, event: Event)
core/src/engine/event.rs:218
↓ 109 callers
Method
insert
(&mut self, instance: EffectInstance)
core/src/components/effects/effect_manager.rs:38
↓ 101 callers
Method
len
(&self)
core/src/components/spells/spellbook.rs:73
↓ 88 callers
Method
spawn
( &mut self, handle: impl Into<String>, template: impl Into<String>, )
core/src/test_utils/scenario.rs:100
↓ 83 callers
Method
get
(&self, key: &K)
core/src/components/d20.rs:428
↓ 64 callers
Method
into
(self)
core/src/components/id.rs:146
↓ 61 callers
Method
contains
(&self, spell_id: &SpellId)
core/src/components/spells/spellbook.rs:89
↓ 59 callers
Method
render
(&self, ui: &imgui::Ui)
gui/src/render/ui/components.rs:108
↓ 57 callers
Method
end
(&self)
core/src/engine/geometry.rs:281
↓ 57 callers
Method
probe
(&mut self, handle: impl Into<String>)
core/src/test_utils/scenario.rs:75
↓ 56 callers
Method
level
(&self)
core/src/components/level.rs:126
↓ 48 callers
Method
build
(self)
core/src/test_utils/scenario.rs:231
↓ 48 callers
Method
iter
(&self)
core/src/components/spells/spellbook.rs:85
↓ 46 callers
Method
is_empty
(&self)
core/src/systems/movement.rs:67
↓ 44 callers
Method
add
(&mut self, reference: RegistryReference)
core/src/registry/registry_validation.rs:74
↓ 44 callers
Method
as_str
(&self)
core/src/components/id.rs:192
↓ 44 callers
Method
id
(&self)
core/src/components/actions/action.rs:83
↓ 41 callers
Method
id
(&self)
core/src/components/id.rs:224
↓ 39 callers
Method
into
(self)
gui/src/render/common/colors.rs:25
↓ 39 callers
Method
values
(&self)
core/src/components/effects/effect_manager.rs:52
↓ 36 callers
Method
get
Borrow as the requested type, if the variant matches.
gui/src/state/settings.rs:181
↓ 36 callers
Method
max
(&self)
core/src/components/actions/targeting.rs:771
↓ 35 callers
Method
remove
(&mut self, source: &ModifierSource)
core/src/components/d20.rs:54
↓ 34 callers
Method
get_mut
(&mut self, key: &K)
core/src/components/d20.rs:432
↓ 34 callers
Method
id
(&self)
core/src/scripts/script.rs:117
↓ 33 callers
Method
render
(&self, ui: &imgui::Ui)
gui/src/render/ui/text.rs:106
↓ 32 callers
Method
contains_key
(&self, source: &ModifierSource)
core/src/components/modifier.rs:122
↓ 30 callers
Method
into
(self)
core/src/scripts/script_api.rs:71
↓ 30 callers
Method
is_empty
(&self)
gui/src/windows/level_up.rs:110
↓ 29 callers
Method
id
(&self)
core/src/engine/encounter.rs:79
↓ 26 callers
Method
add_modifier
(&mut self, source: ModifierSource, value: T)
core/src/components/d20.rs:288
↓ 26 callers
Method
id
(&self)
gui/src/windows/encounter.rs:49
↓ 23 callers
Function
effects
This gets used so often that it deserves its own function
core/src/systems/effects.rs:25
↓ 22 callers
Method
actor
(&self)
core/src/engine/event.rs:58
↓ 22 callers
Method
position
(mut self, position: impl Into<Point3<f32>>, on_ground: bool)
core/src/test_utils/scenario.rs:200
↓ 21 callers
Method
render
(&self, ui: &imgui::Ui)
gui/src/windows/action_bar/action_bar.rs:851
↓ 21 callers
Method
set
()
core/src/components/ability.rs:51
↓ 20 callers
Method
act
( &mut self, handle: impl Into<String>, action: impl Into<ActionId>, )
core/src/test_utils/scenario.rs:126
↓ 20 callers
Method
assert_effect
(&self, game_state: &GameState, effect_id: impl Into<EffectId>)
core/src/test_utils/creature_probe.rs:180
↓ 20 callers
Function
flat_resource
(current: u8, max: u8)
core/src/components/resource.rs:887
↓ 20 callers
Function
game_state
()
core/src/test_utils/fixtures.rs:736
↓ 19 callers
Method
assert_resource
( &self, game_state: &GameState, resource: impl Into<ResourceId>, operator: Op
core/src/test_utils/creature_probe.rs:132
↓ 19 callers
Method
get
(&self, phase_index: usize, target_index: usize)
core/src/components/actions/action.rs:484
↓ 19 callers
Method
gl_context
(&self)
gui/src/state/gui_state.rs:111
↓ 19 callers
Method
perform
(self)
core/src/test_utils/scenario.rs:348
↓ 19 callers
Method
roll
(&self, proficiency_bonus: u8)
core/src/components/d20.rs:169
↓ 18 callers
Method
total
(&self)
core/src/components/ability.rs:118
↓ 17 callers
Method
actor
(&self)
gui/src/windows/action_bar/action_bar.rs:186
↓ 17 callers
Function
get_shape
Get the collision shape for a creature entity and the pose of the shape, i.e the pose is the center of the shape.
core/src/systems/geometry.rs:101
↓ 16 callers
Method
add
(self, other: ResourceAmount)
core/src/components/resource.rs:456
↓ 16 callers
Function
expect_literal
(expr: &IntExpression, expected: i32)
core/src/registry/serialize/parser.rs:451
↓ 16 callers
Method
iter_mut
(&mut self)
core/src/components/resource.rs:754
↓ 16 callers
Function
loadout
(world: &World, entity: Entity)
core/src/systems/loadout.rs:23
↓ 15 callers
Method
effect
(&self)
core/src/components/effects/effect.rs:151
↓ 15 callers
Method
equip_in_slot
( &mut self, slot: &EquipmentSlot, equipment: T, )
core/src/components/items/equipment/loadout.rs:178
↓ 15 callers
Method
filter
(&self)
core/src/test_utils/scenario.rs:580
↓ 14 callers
Method
ability_modifier
(&self)
core/src/components/ability.rs:110
↓ 14 callers
Method
add_modifier
(&mut self, source: ModifierSource, value: T)
core/src/components/items/equipment/armor.rs:69
↓ 14 callers
Method
d20_force_outcome
( &mut self, game_state: &mut GameState, kind: D20CheckKind, outcome: D20Check
core/src/test_utils/creature_probe.rs:96
↓ 14 callers
Method
is_empty
(&self)
core/src/components/damage.rs:481
↓ 14 callers
Method
perform
(&self, game_state: &mut GameState)
core/src/components/actions/action_builder.rs:301
↓ 14 callers
Method
update
(&mut self, time_step: TimeStep)
core/src/components/time.rs:101
↓ 13 callers
Method
consume_whitespace
(&mut self)
core/src/registry/serialize/parser.rs:196
↓ 13 callers
Function
equip
( game_state: &mut GameState, entity: Entity, equipment: T, )
core/src/systems/loadout.rs:69
↓ 13 callers
Method
for_each
(&self, get_hook: impl Fn(&Effect) -> Option<&H>, mut f: impl FnMut(&H))
core/src/components/effects/effect_manager.rs:69
↓ 13 callers
Method
get
(&self, id: &ResourceId)
core/src/components/resource.rs:742
↓ 13 callers
Function
get_action
(action_id: &ActionId)
core/src/systems/actions.rs:34
↓ 13 callers
Method
next_char
(&mut self)
core/src/registry/serialize/parser.rs:187
↓ 13 callers
Method
process_event
(&mut self, event: Event)
core/src/engine/game_state.rs:391
↓ 13 callers
Function
rust_doc_to_str
(doc: &str)
gui/src/windows/navigation_debug.rs:334
↓ 12 callers
Method
all_keys_strings
(&self)
core/src/registry/registry.rs:313
↓ 12 callers
Method
check
(&self, key: &K, world: &World, entity: Entity)
core/src/components/d20.rs:474
↓ 12 callers
Method
closest
(&self)
core/src/systems/geometry.rs:300
↓ 12 callers
Method
event_filter
(&self)
core/src/test_utils/scenario.rs:179
↓ 12 callers
Method
parse_dice_expression
dice_expr := dice_core (('+' | '-') expression)? dice_core := dice_count 'd' dice_size
core/src/registry/serialize/parser.rs:390
↓ 12 callers
Method
scope_for_entity
(&self, entity: Entity)
core/src/engine/game_state.rs:208
↓ 12 callers
Method
session_mut
(&mut self, id: InteractionScopeId)
core/src/engine/interaction.rs:146
↓ 12 callers
Method
spellcasting_rules
( &self, subclass_id: &Option<SubclassId>, )
core/src/components/class.rs:210
↓ 12 callers
Method
target
(&mut self, game_state: &mut GameState, target: TargetInstance)
core/src/components/actions/action_builder.rs:156
↓ 12 callers
Method
target_entity
(mut self, handle: impl Into<String>)
core/src/test_utils/scenario.rs:316
↓ 12 callers
Function
tiered_resource
(tiers: &[(u8, u8, u8)])
core/src/components/resource.rs:891
↓ 12 callers
Method
with_indent
(mut self, indent_level: u8)
gui/src/render/ui/text.rs:137
↓ 11 callers
Method
action
(&mut self, game_state: &GameState, action_id: &ActionId)
core/src/components/actions/action_builder.rs:77
↓ 11 callers
Function
get_foot_position
(world: &World, entity: Entity)
core/src/systems/geometry.rs:61
↓ 11 callers
Method
get_function
( &self, script: &Script, function: ScriptFunction, )
core/src/scripts/script_engine.rs:131
↓ 11 callers
Method
is_empty
(&self)
core/src/components/actions/action.rs:423
↓ 11 callers
Method
item
(&self)
core/src/components/items/equipment/weapon.rs:272
↓ 11 callers
Method
kind_name
(&self)
core/src/components/actions/action_builder.rs:443
↓ 11 callers
Method
render_mut_with_context
(&mut self, ui: &imgui::Ui, game_state: &mut GameState)
gui/src/windows/level_up.rs:400
↓ 10 callers
Method
assert_hp
(&self, game_state: &GameState, operator: Operator<u32>)
core/src/test_utils/creature_probe.rs:223
↓ 10 callers
Method
build
(&self, game_state: &mut GameState)
core/src/components/actions/action_builder.rs:243
↓ 10 callers
Function
collect_effect_hooks
( definitions: &Vec<HookDefinition>, effect_id: &EffectId, )
core/src/registry/serialize/effect.rs:734
↓ 10 callers
Method
current
(&self)
core/src/components/health/hit_points.rs:67
↓ 10 callers
Method
current_entity
(&self)
core/src/engine/encounter.rs:87
↓ 10 callers
Method
render_window
( &mut self, ui: &imgui::Ui, label: &str, anchor: &WindowAnchor, size:
gui/src/windows/anchor.rs:195
↓ 10 callers
Method
render_with_context
( &self, ui: &imgui::Ui, gui_state: &mut GuiState, game_state: &mut GameState,
gui/src/windows/action_bar/movement_preview.rs:130
↓ 10 callers
Method
total
(&self)
core/src/components/items/equipment/armor.rs:88
↓ 9 callers
Method
add
(&mut self, kind: AdvantageType, source: ModifierSource)
core/src/components/d20.rs:50
next →
1–100 of 1,582, ranked by callers