MCPcopy Create free account

hub / github.com/MeoMix/symbiants / functions

Functions394 in github.com/MeoMix/symbiants

↓ 75 callersMethodentity
(&self, position: Position)
simulation/src/common/grid/mod.rs:42
↓ 70 callersMethodget
(&self, model_entity: &Entity)
rendering/src/common/mod.rs:46
↓ 60 callersMethodinsert
(&mut self, model_entity: Entity, view_entity: Entity)
rendering/src/common/mod.rs:35
↓ 28 callersMethodset
(&mut self, ticks: isize)
simulation/src/story_time.rs:179
↓ 25 callersMethodlen
(&self)
rendering/src/common/mod.rs:54
↓ 24 callersMethodget_entity
(&self, position: Position)
simulation/src/common/grid/mod.rs:49
↓ 23 callersMethodis
(&self, position: Position, element: Element)
simulation/src/common/grid/mod.rs:69
↓ 20 callersMethodget
(&self, position: &Position)
simulation/src/common/pheromone/mod.rs:69
↓ 19 callersMethodget_mut
(&mut self, position: &Position)
simulation/src/common/pheromone/mod.rs:83
↓ 18 callersMethodwidth
(&self)
simulation/src/common/grid/mod.rs:20
↓ 17 callersMethodheight
(&self)
simulation/src/common/grid/mod.rs:24
↓ 16 callersMethodadd
(self, other: Self)
simulation/src/common/position.rs:61
↓ 14 callersMethodcan_act
(&self)
simulation/src/common/ant/initiative.rs:27
↓ 14 callersMethodelement
(&self, entity: Entity)
simulation/src/common/grid/mod.rs:57
↓ 14 callersMethodmax
(&self)
simulation/src/common/ant/digestion.rs:40
↓ 12 callersMethodget_ahead_position
Returns the position of the tile in front of the ant's face.
simulation/src/nest_simulation/ant/mod.rs:194
↓ 10 callersMethodcan_move
(&self)
simulation/src/common/ant/initiative.rs:23
↓ 10 callersMethodconsume
(&mut self)
simulation/src/common/ant/initiative.rs:31
↓ 10 callersMethodconsume_movement
(&mut self)
simulation/src/common/ant/initiative.rs:39
↓ 10 callersMethodis_aboveground
(&self, position: &Position)
simulation/src/nest_simulation/nest/mod.rs:49
↓ 10 callersMethodload
( &self, key: &str, seed: S, )
simulation/src/save/save_web.rs:246
↓ 9 callersMethodget_below_position
Returns the position of the tile below the ant's feet.
simulation/src/nest_simulation/ant/mod.rs:199
↓ 9 callersFunctiongrid_to_world_position
Convert Position to Transform, z-index is naively set to 1 for now
rendering/src/common/visible_grid.rs:26
↓ 9 callersMethodis_underground
(&self, position: &Position)
simulation/src/nest_simulation/nest/mod.rs:53
↓ 9 callersMethodspawn_pheromone
( &mut self, position: Position, pheromone: Pheromone, pheromone_strength: Phe
simulation/src/common/pheromone/commands.rs:27
↓ 8 callersMethoddig
( &mut self, ant_entity: Entity, target_position: Position, target_element_ent
simulation/src/common/ant/commands.rs:78
↓ 8 callersMethodvalue
(&self)
simulation/src/common/ant/hunger.rs:36
↓ 7 callersMethodget_ahead_position
Returns the position of the tile in front of the ant's face.
simulation/src/crater_simulation/ant/mod.rs:50
↓ 7 callersFunctioninterpolate_color
(color_a: Color, color_b: Color, t: f32)
rendering/src/nest/background/mod.rs:28
↓ 7 callersMethodis_within_bounds
(&self, position: &Position)
simulation/src/common/grid/mod.rs:28
↓ 7 callersMethodsurface_level
(&self)
simulation/src/nest_simulation/nest/mod.rs:45
↓ 6 callersMethodas_time_info
(&self)
simulation/src/story_time.rs:92
↓ 6 callersFunctionclamp_translation
( cam: &PanCam, projection: &OrthographicProjection, transform: &mut Transform, delta_device_p
rendering/src/common/camera/pancam.rs:90
↓ 6 callersMethoddistance
Returns the Manhattan Distance between two positions
simulation/src/common/position.rs:43
↓ 6 callersMethodget_above_position
Returns the position of the tile above the ant's head.
simulation/src/nest_simulation/ant/mod.rs:208
↓ 6 callersMethodget_element
(&self, entity: Entity)
simulation/src/common/grid/mod.rs:62
↓ 6 callersMethodis_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 callersMethodset
(&mut self, position: Position, entity: Entity)
simulation/src/common/grid/mod.rs:89
↓ 5 callersMethodget_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 callersMethodhours
(&self)
simulation/src/story_time.rs:45
↓ 5 callersMethodreplace_element
( &mut self, position: Position, element: Element, target_element: Entity,
simulation/src/common/element/commands.rs:33
↓ 4 callersMethoddrop
( &mut self, ant_entity: Entity, target_position: Position, target_element_ent
simulation/src/common/ant/commands.rs:93
↓ 4 callersMethodget_ahead_delta
(&self)
simulation/src/nest_simulation/ant/mod.rs:166
↓ 4 callersFunctionget_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 callersFunctionget_turned_orientation
TODO: coupling..
simulation/src/nest_simulation/ant/wander.rs:110
↓ 4 callersFunctiongrid_to_tile_pos
(grid: &Grid, position: Position)
rendering/src/common/visible_grid.rs:18
↓ 4 callersMethodis_facing_north
(&self)
simulation/src/nest_simulation/ant/mod.rs:120
↓ 4 callersFunctionlerp
(a: f32, b: f32, t: f32)
rendering/src/nest/background/mod.rs:24
↓ 4 callersMethodremove
(&mut self, model_entity: &Entity)
rendering/src/common/mod.rs:50
↓ 4 callersMethodtoggle_element_command
( &mut self, target_element_entity: Entity, position: Position, toggle: bool,
simulation/src/common/element/commands.rs:56
↓ 3 callersMethodelapsed_ticks
(&self)
simulation/src/story_time.rs:88
↓ 3 callersMethodget_behind_position
Returns the position of the tile behind the ant's butt.
simulation/src/nest_simulation/ant/mod.rs:203
↓ 3 callersMethodget_facing
(&self)
simulation/src/nest_simulation/ant/mod.rs:96
↓ 3 callersFunctionis_valid_location
( orientation: NestOrientation, position: Position, nest: &Nest, grid_elemenets: &GridElements
simulation/src/nest_simulation/ant/wander.rs:146
↓ 3 callersMethodminutes
(&self)
simulation/src/story_time.rs:49
↓ 3 callersMethodrotate_forward
(&self)
simulation/src/nest_simulation/ant/mod.rs:146
↓ 3 callersMethodvalue
(&self)
simulation/src/nest_simulation/ant/birthing.rs:39
↓ 2 callersFunctionbuild_snapshot
( world: &World, readonly_model_query: &QueryState<Entity, PersistentModelQueryFilter>, )
simulation/src/save/save_web.rs:275
↓ 2 callersMethoddays
(&self)
simulation/src/story_time.rs:41
↓ 2 callersMethodemote_type
(&self)
rendering/src/nest/ant/emote.rs:35
↓ 2 callersFunctionfast_forward_seconds
( seconds: isize, fixed_time: &mut ResMut<Time<Fixed>>, next_story_playback_state: &mut ResMut<Nex
simulation/src/story_time.rs:313
↓ 2 callersMethodget_adjacent_positions
Returns all positions adjacent to this position. May include out-of-bounds positions.
simulation/src/common/position.rs:48
↓ 2 callersFunctionget_best_fit_scale
Calculate the scale which will minimally cover the window with a grid.
rendering/src/common/camera/mod.rs:15
↓ 2 callersMethodget_decimal_hours
(&self)
simulation/src/story_time.rs:53
↓ 2 callersFunctionget_inventory_item_bundle
( element_entity: Entity, elements_query: &Query<&Element>, element_texture_handle: &Res<ElementSp
rendering/src/nest/ant/mod.rs:477
↓ 2 callersFunctionget_inventory_item_bundle
( element_entity: Entity, elements_query: &Query<&Element>, element_texture_handle: &Res<ElementSp
rendering/src/crater/ant/mod.rs:452
↓ 2 callersFunctionget_inventory_transform
(orientation: &CraterOrientation)
rendering/src/crater/ant/mod.rs:485
↓ 2 callersFunctionget_pheromone_sprite
(pheromone: &Pheromone, pheromone_strength: &PheromoneStrength)
rendering/src/nest/pheromone/mod.rs:135
↓ 2 callersFunctionget_pheromone_sprite
(pheromone: &Pheromone, pheromone_strength: &PheromoneStrength)
rendering/src/crater/pheromone/mod.rs:136
↓ 2 callersFunctionget_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 callersFunctionget_sprite_image
Non-System Helper Functions:
rendering/src/crater/ant/mod.rs:337
↓ 2 callersMethodincrement
(&mut self, value: f32)
simulation/src/common/pheromone/mod.rs:46
↓ 2 callersMethodinitial
(&self)
simulation/src/story_time.rs:196
↓ 2 callersMethodis_hungry
(&self)
simulation/src/common/ant/hunger.rs:56
↓ 2 callersMethodis_nighttime
TODO: Could use an enum or something
simulation/src/story_time.rs:125
↓ 2 callersMethodis_peckish
(&self)
simulation/src/common/ant/hunger.rs:52
↓ 2 callersMethodis_rightside_up
(&self)
simulation/src/nest_simulation/ant/mod.rs:116
↓ 2 callersMethodis_upside_down
(&self)
simulation/src/nest_simulation/ant/mod.rs:112
↓ 2 callersMethodis_vertical
(&self)
simulation/src/nest_simulation/ant/mod.rs:108
↓ 2 callersFunctionmax_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 callersFunctionorientation_to_world_rotation
(orientation: &NestOrientation)
rendering/src/nest/ant/mod.rs:522
↓ 2 callersFunctionorientation_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 callersMethodrotate
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 callersMethodrotate_backward
(&self)
simulation/src/nest_simulation/ant/mod.rs:156
↓ 2 callersMethodspawn_ant
( &mut self, position: Position, color: AntColor, nest_orientation: Option<Nes
simulation/src/common/ant/commands.rs:53
↓ 2 callersFunctionspawn_ant_sprite
Non-System Helper Functions:
rendering/src/nest/ant/mod.rs:359
↓ 2 callersFunctionspawn_ant_sprite
( commands: &mut Commands, model_entity: Entity, position: &Position, color: &AntColor, na
rendering/src/crater/ant/mod.rs:353
↓ 2 callersFunctionspawn_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 callersFunctionspawn_pheromone
Non-System Helper Functions:
rendering/src/nest/pheromone/mod.rs:107
↓ 2 callersFunctionspawn_pheromone
Non-System Helper Functions:
rendering/src/crater/pheromone/mod.rs:108
↓ 2 callersMethodturn_around
(&self)
simulation/src/nest_simulation/ant/mod.rs:136
↓ 2 callersMethodvalue
(&self)
simulation/src/common/ant/digestion.rs:36
↓ 2 callersMethodvalue
(&self)
simulation/src/common/pheromone/mod.rs:38
↓ 2 callersFunctionwrite_save_snapshot
()
simulation/src/save/save_web.rs:102
↓ 1 callersMethodadd_or_update_entity
(&mut self, position: &Position, pheromone_entity: Entity)
simulation/src/common/pheromone/mod.rs:97
↓ 1 callersMethodapply
(self, world: &mut World)
simulation/src/common/ant/commands.rs:118
↓ 1 callersMethodas_datetime
(&self)
simulation/src/story_time.rs:20
↓ 1 callersMethodas_radians
(self)
simulation/src/nest_simulation/ant/mod.rs:62
↓ 1 callersFunctionbevy_color_to_color32
(color: bevy::prelude::Color)
ui/src/story/settings_menu.rs:162
↓ 1 callersMethodbuild
(&self, app: &mut App)
simulation/src/common/mod.rs:92
next →1–100 of 394, ranked by callers