wip 4 remove enterresponse

This commit is contained in:
2026-08-11 01:33:15 -05:00
parent 1872db340c
commit 1a4d894336
6 changed files with 43 additions and 116 deletions
+6 -6
View File
@@ -6,7 +6,7 @@ use crate::utils::{Direction, Point};
use crate::utils::{ObjectId, RegistryValue};
use std::collections::{HashMap, HashSet};
use crate::portal::Portal;
use crate::tile::{DrawLayer, EnterResponse, Hookable, IntoTile, LocatedObject, ScriptAttributes, Sensor, Tile, TileSpec};
use crate::tile::{DrawLayer, Hookable, IntoTile, LocatedObject, ScriptAttributes, Sensor, Tile, TileSpec};
/// The complete state of one game board (a single room or screen).
///
@@ -502,7 +502,7 @@ pub(crate) mod tests {
use std::collections::HashMap;
use crate::object_def::ObjectDef;
use crate::tile::{
DrawLayer, EnterResponse, IntoTile, Optics, ScriptAttributes, Sensor, SensorSpec, Tile,
DrawLayer, IntoTile, Optics, ScriptAttributes, Sensor, SensorSpec, Tile,
TileSpec,
};
@@ -583,11 +583,11 @@ pub(crate) mod tests {
x: usize,
y: usize,
script: &str,
enter: EnterResponse,
mobile: bool,
) -> ObjectId {
let tile = TileSpec::Object {
script: Some(script.to_string()),
enter,
mobile,
glyph: ObjectDef::default_glyph(),
optics: Optics { opaque: true, glow: 0 },
name: None,
@@ -612,11 +612,11 @@ pub(crate) mod tests {
board: &mut Board,
x: usize,
y: usize,
enter: EnterResponse,
mobile: bool,
) -> ObjectId {
let tile = TileSpec::Object {
script: None,
enter,
mobile,
glyph: ObjectDef::default_glyph(),
optics: Optics { opaque: true, glow: 0 },
name: None,