Implemented and cleaned up character schemas

This commit is contained in:
Thaum
2014-11-13 08:44:21 +00:00
parent d80fb19dfe
commit 7ab97a17cc
27 changed files with 403 additions and 259 deletions

View File

@@ -1,7 +1,10 @@
Containers = new Meteor.Collection('containers');
//set up the collection for containers
Containers = new Meteor.Collection("containers");
Container = function(name, owner){
this.name = name;
this.owner = owner;
this.isCarried = true;
};
Schemas.Container = new SimpleSchema({
name: { type: String },
owner: { type: String, regEx: SimpleSchema.RegEx.Id},
isCarried: { type: Boolean }
});
Containers.attachSchema(Schemas.Container);