From e4630c45b210075144aa416151278905182e93ba Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 7 Jun 2014 21:32:16 +0000 Subject: [PATCH] Convert sample area data file to YAML --- etc/mudpy.conf | 2 +- sample/__init__.mpy | 2 +- sample/area.mpy | 46 ---------------------------------------------- sample/area.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 48 deletions(-) delete mode 100644 sample/area.mpy create mode 100644 sample/area.yaml diff --git a/etc/mudpy.conf b/etc/mudpy.conf index 86e656f..3c1c175 100644 --- a/etc/mudpy.conf +++ b/etc/mudpy.conf @@ -3,7 +3,7 @@ # terms provided in the LICENSE file distributed with this software. [__control__] -default_files = { "account": "account.mpy", "actor": "actor.mpy", "area": "area.mpy", "command": "command.yaml", "internal": "internal.mpy", "menu": "menu.yaml", "other": "other.mpy", "prop": "prop.mpy" } +default_files = { "account": "account.mpy", "actor": "actor.mpy", "area": "area.yaml", "command": "command.yaml", "internal": "internal.mpy", "menu": "menu.yaml", "other": "other.mpy", "prop": "prop.mpy" } include_dirs = "sample" include_files = "archetype.yaml" private_files = "account.mpy" diff --git a/sample/__init__.mpy b/sample/__init__.mpy index b66fbca..3075204 100644 --- a/sample/__init__.mpy +++ b/sample/__init__.mpy @@ -3,6 +3,6 @@ # terms provided in the LICENSE file distributed with this software. [__control__] -include_files = [ "area.mpy", "prop.mpy" ] +include_files = [ "area.yaml", "prop.mpy" ] read_only = yes diff --git a/sample/area.mpy b/sample/area.mpy deleted file mode 100644 index e4641eb..0000000 --- a/sample/area.mpy +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (c) 2004-2014 Jeremy Stanley . Permission -# to use, copy, modify, and distribute this software is granted under -# terms provided in the LICENSE file distributed with this software. - -[area:-1,0,0] -description = This is the West Sample Location. It is merely provided as an example of what an area might look like. -gridlinks = ['east'] -name = West Sample Location -terrain = inside - -[area:0,-1,0] -description = This is the South Sample Location. It is merely provided as an example of what an area might look like. -gridlinks = ['north'] -name = South Sample Location -terrain = inside - -[area:0,0,-1] -description = This is the Lower Sample Location. It is merely provided as an example of what an area might look like. -gridlinks = ['up'] -name = Lower Sample Location -terrain = inside - -[area:0,0,0] -description = This is the Center Sample Location. It is merely provided as an example of what an area might look like. -gridlinks = ['down', 'east', 'north', 'south', 'up', 'west'] -name = Center Sample Location -terrain = inside - -[area:0,0,1] -description = This is the Upper Sample Location. It is merely provided as an example of what an area might look like. -gridlinks = ['down'] -name = Upper Sample Location -terrain = inside - -[area:0,1,0] -description = This is the North Sample Location. It is merely provided as an example of what an area might look like. -gridlinks = ['south'] -name = North Sample Location -terrain = inside - -[area:1,0,0] -description = This is the East Sample Location. It is merely provided as an example of what an area might look like. -gridlinks = ['west'] -name = East Sample Location -terrain = inside - diff --git a/sample/area.yaml b/sample/area.yaml new file mode 100644 index 0000000..93992a6 --- /dev/null +++ b/sample/area.yaml @@ -0,0 +1,45 @@ +# Copyright (c) 2004-2014 Jeremy Stanley . Permission +# to use, copy, modify, and distribute this software is granted under +# terms provided in the LICENSE file distributed with this software. + +area:-1,0,0: + description: This is the West Sample Location. It is merely provided as an example of what an area might look like. + gridlinks: ['east'] + name: West Sample Location + terrain: inside + +area:0,-1,0: + description: This is the South Sample Location. It is merely provided as an example of what an area might look like. + gridlinks: ['north'] + name: South Sample Location + terrain: inside + +area:0,0,-1: + description: This is the Lower Sample Location. It is merely provided as an example of what an area might look like. + gridlinks: ['up'] + name: Lower Sample Location + terrain: inside + +area:0,0,0: + description: This is the Center Sample Location. It is merely provided as an example of what an area might look like. + gridlinks: ['down', 'east', 'north', 'south', 'up', 'west'] + name: Center Sample Location + terrain: inside + +area:0,0,1: + description: This is the Upper Sample Location. It is merely provided as an example of what an area might look like. + gridlinks: ['down'] + name: Upper Sample Location + terrain: inside + +area:0,1,0: + description: This is the North Sample Location. It is merely provided as an example of what an area might look like. + gridlinks: ['south'] + name: North Sample Location + terrain: inside + +area:1,0,0: + description: This is the East Sample Location. It is merely provided as an example of what an area might look like. + gridlinks: ['west'] + name: East Sample Location + terrain: inside -- 2.11.0