Compare commits

...

4 Commits

Author SHA1 Message Date
Visne
2c6941e73b Version: 0.40.3.2 2022-08-15 02:49:34 +02:00
wrexbe
5e5883cb88 Fix map schema (#3138) 2022-08-15 02:40:56 +02:00
ElectroJr
02c504445e Version: 0.40.3.1 2022-08-14 19:21:42 -04:00
wrexbe
4d5075a792 Update mapfile_validators.py (#3136) 2022-08-15 09:20:12 +10:00
3 changed files with 9 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
<Project>
<!-- This file automatically reset by Tools/version.py -->
<PropertyGroup><Version>0.40.3.0</Version></PropertyGroup>
<PropertyGroup><Version>0.40.3.2</Version></PropertyGroup>
</Project>

View File

@@ -5,11 +5,7 @@ meta:
author: str()
postmapinit: bool()
tilemap: map(str(), key=int())
grids:
- settings:
chunksize: int()
tilesize: int()
chunks: list(include('chunk'), min=1)
grids: list(include('grid'), min=1)
entities: list(include('entity'), min=1)
---
chunk:
@@ -19,6 +15,12 @@ entity:
uid: int()
type: str(required=False)
components: list(comp())
grid:
settings:
chunksize: int()
tilesize: int()
snapsize: int(required=False)
chunks: list(include('chunk'), min=1)
# Example
# meta:

View File

@@ -5,7 +5,4 @@ class Component(Validator):
tag = "comp"
def _is_valid(self, value):
data = yaml.safe_load(value)
if data["type"]:
return True
return False
return 'type' in value