wip 4 remove enterresponse
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user