Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MeoMix/symbiants
/ functions
Functions
394 in github.com/MeoMix/symbiants
⨍
Functions
394
◇
Types & classes
132
↓ 75 callers
Method
entity
(&self, position: Position)
simulation/src/common/grid/mod.rs:42
↓ 70 callers
Method
get
(&self, model_entity: &Entity)
rendering/src/common/mod.rs:46
↓ 60 callers
Method
insert
(&mut self, model_entity: Entity, view_entity: Entity)
rendering/src/common/mod.rs:35
↓ 28 callers
Method
set
(&mut self, ticks: isize)
simulation/src/story_time.rs:179
↓ 25 callers
Method
len
(&self)
rendering/src/common/mod.rs:54
↓ 24 callers
Method
get_entity
(&self, position: Position)
simulation/src/common/grid/mod.rs:49
↓ 23 callers
Method
is
(&self, position: Position, element: Element)
simulation/src/common/grid/mod.rs:69
↓ 20 callers
Method
get
(&self, position: &Position)
simulation/src/common/pheromone/mod.rs:69
↓ 19 callers
Method
get_mut
(&mut self, position: &Position)
simulation/src/common/pheromone/mod.rs:83
↓ 18 callers
Method
width
(&self)
simulation/src/common/grid/mod.rs:20
↓ 17 callers
Method
height
(&self)
simulation/src/common/grid/mod.rs:24
↓ 16 callers
Method
add
(self, other: Self)
simulation/src/common/position.rs:61
↓ 14 callers
Method
can_act
(&self)
simulation/src/common/ant/initiative.rs:27
↓ 14 callers
Method
element
(&self, entity: Entity)
simulation/src/common/grid/mod.rs:57
↓ 14 callers
Method
max
(&self)
simulation/src/common/ant/digestion.rs:40
↓ 12 callers
Method
get_ahead_position
Returns the position of the tile in front of the ant's face.
simulation/src/nest_simulation/ant/mod.rs:194
↓ 10 callers
Method
can_move
(&self)
simulation/src/common/ant/initiative.rs:23
↓ 10 callers
Method
consume
(&mut self)
simulation/src/common/ant/initiative.rs:31
↓ 10 callers
Method
consume_movement
(&mut self)
simulation/src/common/ant/initiative.rs:39
↓ 10 callers
Method
is_aboveground
(&self, position: &Position)
simulation/src/nest_simulation/nest/mod.rs:49
↓ 10 callers
Method
load
( &self, key: &str, seed: S, )
simulation/src/save/save_web.rs:246
↓ 9 callers
Method
get_below_position
Returns the position of the tile below the ant's feet.
simulation/src/nest_simulation/ant/mod.rs:199
↓ 9 callers
Function
grid_to_world_position
Convert Position to Transform, z-index is naively set to 1 for now
rendering/src/common/visible_grid.rs:26
↓ 9 callers
Method
is_underground
(&self, position: &Position)
simulation/src/nest_simulation/nest/mod.rs:53
↓ 9 callers
Method
spawn_pheromone
( &mut self, position: Position, pheromone: Pheromone, pheromone_strength: Phe
simulation/src/common/pheromone/commands.rs:27
↓ 8 callers
Method
dig
( &mut self, ant_entity: Entity, target_position: Position, target_element_ent
simulation/src/common/ant/commands.rs:78
↓ 8 callers
Method
value
(&self)
simulation/src/common/ant/hunger.rs:36
↓ 7 callers
Method
get_ahead_position
Returns the position of the tile in front of the ant's face.
simulation/src/crater_simulation/ant/mod.rs:50
↓ 7 callers
Function
interpolate_color
(color_a: Color, color_b: Color, t: f32)
rendering/src/nest/background/mod.rs:28
↓ 7 callers
Method
is_within_bounds
(&self, position: &Position)
simulation/src/common/grid/mod.rs:28
↓ 7 callers
Method
surface_level
(&self)
simulation/src/nest_simulation/nest/mod.rs:45
↓ 6 callers
Method
as_time_info
(&self)
simulation/src/story_time.rs:92
↓ 6 callers
Function
clamp_translation
( cam: &PanCam, projection: &OrthographicProjection, transform: &mut Transform, delta_device_p
rendering/src/common/camera/pancam.rs:90
↓ 6 callers
Method
distance
Returns the Manhattan Distance between two positions
simulation/src/common/position.rs:43
↓ 6 callers
Method
get_above_position
Returns the position of the tile above the ant's head.
simulation/src/nest_simulation/ant/mod.rs:208
↓ 6 callers
Method
get_element
(&self, entity: Entity)
simulation/src/common/grid/mod.rs:62
↓ 6 callers
Method
is_all
Returns true if every element in `positions` matches the provided Element type. NOTE: This returns true if given 0 positions.
simulation/src/common/grid/mod.rs:78
↓ 6 callers
Method
set
(&mut self, position: Position, entity: Entity)
simulation/src/common/grid/mod.rs:89
↓ 5 callers
Method
get_sunrise_sunset_decimal_hours
Use local because trying to reflect user's sunrise/sunset time not Greenwich's.
simulation/src/story_time.rs:135
↓ 5 callers
Method
hours
(&self)
simulation/src/story_time.rs:45
↓ 5 callers
Method
replace_element
( &mut self, position: Position, element: Element, target_element: Entity,
simulation/src/common/element/commands.rs:33
↓ 4 callers
Method
drop
( &mut self, ant_entity: Entity, target_position: Position, target_element_ent
simulation/src/common/ant/commands.rs:93
↓ 4 callers
Method
get_ahead_delta
(&self)
simulation/src/nest_simulation/ant/mod.rs:166
↓ 4 callers
Function
get_element_index
TODO: super hardcoded to the order they appear in sprite_sheet.png Spritesheet is organized as: 0 - none exposed 1 - north exposed 2 - east exposed 3
rendering/src/common/element/sprite_sheet.rs:66
↓ 4 callers
Function
get_turned_orientation
TODO: coupling..
simulation/src/nest_simulation/ant/wander.rs:110
↓ 4 callers
Function
grid_to_tile_pos
(grid: &Grid, position: Position)
rendering/src/common/visible_grid.rs:18
↓ 4 callers
Method
is_facing_north
(&self)
simulation/src/nest_simulation/ant/mod.rs:120
↓ 4 callers
Function
lerp
(a: f32, b: f32, t: f32)
rendering/src/nest/background/mod.rs:24
↓ 4 callers
Method
remove
(&mut self, model_entity: &Entity)
rendering/src/common/mod.rs:50
↓ 4 callers
Method
toggle_element_command
( &mut self, target_element_entity: Entity, position: Position, toggle: bool,
simulation/src/common/element/commands.rs:56
↓ 3 callers
Method
elapsed_ticks
(&self)
simulation/src/story_time.rs:88
↓ 3 callers
Method
get_behind_position
Returns the position of the tile behind the ant's butt.
simulation/src/nest_simulation/ant/mod.rs:203
↓ 3 callers
Method
get_facing
(&self)
simulation/src/nest_simulation/ant/mod.rs:96
↓ 3 callers
Function
is_valid_location
( orientation: NestOrientation, position: Position, nest: &Nest, grid_elemenets: &GridElements
simulation/src/nest_simulation/ant/wander.rs:146
↓ 3 callers
Method
minutes
(&self)
simulation/src/story_time.rs:49
↓ 3 callers
Method
rotate_forward
(&self)
simulation/src/nest_simulation/ant/mod.rs:146
↓ 3 callers
Method
value
(&self)
simulation/src/nest_simulation/ant/birthing.rs:39
↓ 2 callers
Function
build_snapshot
( world: &World, readonly_model_query: &QueryState<Entity, PersistentModelQueryFilter>, )
simulation/src/save/save_web.rs:275
↓ 2 callers
Method
days
(&self)
simulation/src/story_time.rs:41
↓ 2 callers
Method
emote_type
(&self)
rendering/src/nest/ant/emote.rs:35
↓ 2 callers
Function
fast_forward_seconds
( seconds: isize, fixed_time: &mut ResMut<Time<Fixed>>, next_story_playback_state: &mut ResMut<Nex
simulation/src/story_time.rs:313
↓ 2 callers
Method
get_adjacent_positions
Returns all positions adjacent to this position. May include out-of-bounds positions.
simulation/src/common/position.rs:48
↓ 2 callers
Function
get_best_fit_scale
Calculate the scale which will minimally cover the window with a grid.
rendering/src/common/camera/mod.rs:15
↓ 2 callers
Method
get_decimal_hours
(&self)
simulation/src/story_time.rs:53
↓ 2 callers
Function
get_inventory_item_bundle
( element_entity: Entity, elements_query: &Query<&Element>, element_texture_handle: &Res<ElementSp
rendering/src/nest/ant/mod.rs:477
↓ 2 callers
Function
get_inventory_item_bundle
( element_entity: Entity, elements_query: &Query<&Element>, element_texture_handle: &Res<ElementSp
rendering/src/crater/ant/mod.rs:452
↓ 2 callers
Function
get_inventory_transform
(orientation: &CraterOrientation)
rendering/src/crater/ant/mod.rs:485
↓ 2 callers
Function
get_pheromone_sprite
(pheromone: &Pheromone, pheromone_strength: &PheromoneStrength)
rendering/src/nest/pheromone/mod.rs:135
↓ 2 callers
Function
get_pheromone_sprite
(pheromone: &Pheromone, pheromone_strength: &PheromoneStrength)
rendering/src/crater/pheromone/mod.rs:136
↓ 2 callers
Function
get_sky_gradient_color
TODO: Instead of using sunrise/sunset, consider swapping to altitude and using the sun's altitude directly to define key moments.
rendering/src/nest/background/mod.rs:38
↓ 2 callers
Function
get_sprite_image
Non-System Helper Functions:
rendering/src/crater/ant/mod.rs:337
↓ 2 callers
Method
increment
(&mut self, value: f32)
simulation/src/common/pheromone/mod.rs:46
↓ 2 callers
Method
initial
(&self)
simulation/src/story_time.rs:196
↓ 2 callers
Method
is_hungry
(&self)
simulation/src/common/ant/hunger.rs:56
↓ 2 callers
Method
is_nighttime
TODO: Could use an enum or something
simulation/src/story_time.rs:125
↓ 2 callers
Method
is_peckish
(&self)
simulation/src/common/ant/hunger.rs:52
↓ 2 callers
Method
is_rightside_up
(&self)
simulation/src/nest_simulation/ant/mod.rs:116
↓ 2 callers
Method
is_upside_down
(&self)
simulation/src/nest_simulation/ant/mod.rs:112
↓ 2 callers
Method
is_vertical
(&self)
simulation/src/nest_simulation/ant/mod.rs:108
↓ 2 callers
Function
max_scale_within_bounds
max_scale_within_bounds is used to find the maximum safe zoom out/projection scale when we have been provided with minimum and maximum x boundaries fo
rendering/src/common/camera/pancam.rs:246
↓ 2 callers
Function
orientation_to_world_rotation
(orientation: &NestOrientation)
rendering/src/nest/ant/mod.rs:522
↓ 2 callers
Function
orientation_to_world_scale
Convert AntOrientation to Transform.Scale, z-index is naively set to 1 for now
rendering/src/nest/ant/mod.rs:510
↓ 2 callers
Method
rotate
Rotation is a value from 0 to 3. A value of 1 is a 90 degree counter-clockwise rotation. Negative values are accepted. Examples: rotate(0, -1); // 270
simulation/src/nest_simulation/ant/mod.rs:70
↓ 2 callers
Method
rotate_backward
(&self)
simulation/src/nest_simulation/ant/mod.rs:156
↓ 2 callers
Method
spawn_ant
( &mut self, position: Position, color: AntColor, nest_orientation: Option<Nes
simulation/src/common/ant/commands.rs:53
↓ 2 callers
Function
spawn_ant_sprite
Non-System Helper Functions:
rendering/src/nest/ant/mod.rs:359
↓ 2 callers
Function
spawn_ant_sprite
( commands: &mut Commands, model_entity: Entity, position: &Position, color: &AntColor, na
rendering/src/crater/ant/mod.rs:353
↓ 2 callers
Function
spawn_element_sprite
Non-System Helper Functions: Spawn an Element Sprite at the given Position. Update ModelViewEntityMap and TileStorage to reflect the new view.
rendering/src/common/element/mod.rs:281
↓ 2 callers
Function
spawn_pheromone
Non-System Helper Functions:
rendering/src/nest/pheromone/mod.rs:107
↓ 2 callers
Function
spawn_pheromone
Non-System Helper Functions:
rendering/src/crater/pheromone/mod.rs:108
↓ 2 callers
Method
turn_around
(&self)
simulation/src/nest_simulation/ant/mod.rs:136
↓ 2 callers
Method
value
(&self)
simulation/src/common/ant/digestion.rs:36
↓ 2 callers
Method
value
(&self)
simulation/src/common/pheromone/mod.rs:38
↓ 2 callers
Function
write_save_snapshot
()
simulation/src/save/save_web.rs:102
↓ 1 callers
Method
add_or_update_entity
(&mut self, position: &Position, pheromone_entity: Entity)
simulation/src/common/pheromone/mod.rs:97
↓ 1 callers
Method
apply
(self, world: &mut World)
simulation/src/common/ant/commands.rs:118
↓ 1 callers
Method
as_datetime
(&self)
simulation/src/story_time.rs:20
↓ 1 callers
Method
as_radians
(self)
simulation/src/nest_simulation/ant/mod.rs:62
↓ 1 callers
Function
bevy_color_to_color32
(color: bevy::prelude::Color)
ui/src/story/settings_menu.rs:162
↓ 1 callers
Method
build
(&self, app: &mut App)
simulation/src/common/mod.rs:92
next →
1–100 of 394, ranked by callers