init
This commit is contained in:
7
rpg-docs/Model/Inventory/Containers.js
Normal file
7
rpg-docs/Model/Inventory/Containers.js
Normal file
@@ -0,0 +1,7 @@
|
||||
Containers = new Meteor.Collection('containers');
|
||||
|
||||
Container = function(name, owner){
|
||||
this.name = name;
|
||||
this.owner = owner;
|
||||
this.isCarried = true;
|
||||
}
|
||||
10
rpg-docs/Model/Inventory/Items.js
Normal file
10
rpg-docs/Model/Inventory/Items.js
Normal file
@@ -0,0 +1,10 @@
|
||||
Items = new Meteor.Collection('items');
|
||||
|
||||
Item = function(name, container){
|
||||
this.name = name;
|
||||
this.container = container;
|
||||
this.quantity = 1;
|
||||
this.weight = 0.0;
|
||||
this.value = 0;//value in gold pieces
|
||||
this.description = "";
|
||||
}
|
||||
Reference in New Issue
Block a user