From 105c5ab0c0e969f3fda2cd43ae5195cbdb4da016 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 9 Feb 2020 18:53:27 +0100 Subject: Revert "no templates in the world; only pre-entities" This reverts commit b56add981c2f520789b97d1ee6f71dae41e8c900. --- src/main.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 322a13b..d2cfd13 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,6 @@ mod componentparameter; mod encyclopedia; mod template; mod roomtemplate; -mod player; pub use self::pos::Pos; use self::gameserver::GameServer; @@ -221,6 +220,18 @@ fn default_assemblages() -> Encyclopedia { "height": ["float", 0.1] }] ] + }, + "player": { + "arguments": [["name", "string", null]], + "components": [ + ["Visible", { + "sprite": ["string", "player"], + "height": ["float", 1.0] + }], + ["Player", { + "name": ["arg", "name"] + }] + ] } })).unwrap() } -- cgit