diff options
| author | troido <troido@protonmail.com> | 2020-02-09 18:53:27 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-09 18:53:27 +0100 |
| commit | 105c5ab0c0e969f3fda2cd43ae5195cbdb4da016 (patch) | |
| tree | 46b65b3e96d9b180bf6658cb968a149eb3cfde0f /src/main.rs | |
| parent | b1da31499de4145b1f77296cbea0c637e6f866bf (diff) | |
Revert "no templates in the world; only pre-entities"
This reverts commit b56add981c2f520789b97d1ee6f71dae41e8c900.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 13 |
1 files changed, 12 insertions, 1 deletions
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() } |
