mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Update dmm-tools to 2018 edition
This commit is contained in:
parent
1d939f38c9
commit
9dc992fd52
8 changed files with 14 additions and 13 deletions
|
|
@ -2,6 +2,7 @@
|
|||
name = "dmm-tools"
|
||||
version = "0.1.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use linked_hash_map::LinkedHashMap;
|
|||
|
||||
use dm::{DMError, Location};
|
||||
use dm::constants::Constant;
|
||||
use dmi::Dir;
|
||||
use crate::dmi::Dir;
|
||||
|
||||
mod read;
|
||||
mod save_tgm;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use std::fmt;
|
|||
|
||||
use dm::objtree::*;
|
||||
use dm::constants::Constant;
|
||||
use dmm::Map;
|
||||
use crate::dmm::Map;
|
||||
|
||||
macro_rules! lints {
|
||||
($($ident:ident = $desc:expr;)*) => {
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ use ndarray::Axis;
|
|||
|
||||
use dm::objtree::*;
|
||||
use dm::constants::Constant;
|
||||
use dmm::{Map, ZLevel, Prefab};
|
||||
use dmi::{Dir, Image};
|
||||
use render_passes::RenderPass;
|
||||
use icon_cache::IconCache;
|
||||
use crate::dmm::{Map, ZLevel, Prefab};
|
||||
use crate::dmi::{Dir, Image};
|
||||
use crate::render_passes::RenderPass;
|
||||
use crate::icon_cache::IconCache;
|
||||
|
||||
const TILE_SIZE: u32 = 32;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
use dm::objtree::ObjectTree;
|
||||
use dm::constants::Constant;
|
||||
use dmi::Dir;
|
||||
use minimap::{Sprite, Atom, GetVar, Neighborhood};
|
||||
use crate::dmi::Dir;
|
||||
use crate::minimap::{Sprite, Atom, GetVar, Neighborhood};
|
||||
|
||||
use super::RenderPass;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use dm::objtree::*;
|
||||
use dm::constants::Constant;
|
||||
use minimap::{Atom, GetVar, Sprite, Layer, Neighborhood};
|
||||
use crate::minimap::{Atom, GetVar, Sprite, Layer, Neighborhood};
|
||||
|
||||
mod transit_tube;
|
||||
mod random;
|
||||
|
|
@ -210,7 +210,7 @@ impl RenderPass for Overlays {
|
|||
objtree: &'a ObjectTree,
|
||||
_: &'a bumpalo::Bump,
|
||||
) {
|
||||
use dmi::Dir;
|
||||
use crate::dmi::Dir;
|
||||
|
||||
if atom.istype("/obj/machinery/power/apc/") {
|
||||
// auto-set pixel location
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use std::fmt::Write;
|
||||
use dmi::Dir;
|
||||
use crate::dmi::Dir;
|
||||
use super::*;
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use super::*;
|
||||
use dmi::Dir;
|
||||
use crate::dmi::Dir;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct TransitTube;
|
||||
|
|
@ -11,7 +11,7 @@ impl RenderPass for TransitTube {
|
|||
overlays: &mut Vec<Sprite<'a>>,
|
||||
_: &bumpalo::Bump,
|
||||
) {
|
||||
use dmi::Dir::*;
|
||||
use crate::dmi::Dir::*;
|
||||
|
||||
if !atom.istype("/obj/structure/transit_tube/") {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue