-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollections.js
39 lines (30 loc) · 1.61 KB
/
collections.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////// CLIENT + SERVER //////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
/*Meteor.Collection was renamed Mongo.Collection in 0.9.1.
The change is currently backward compatible, however you should
switch to using Mongo.Collection for any new projects. It looks
like the docs have mostly been updated except for the wording in
the Data and security section.*/
//Collection init
Menus = new Mongo.Collection("Menus");
MatterBlocks = new Mongo.Collection("MatterBlocks");
FightArenas = new Mongo.Collection("FightArenas");
playerData = new Mongo.Collection("playerData");
resources = new Mongo.Collection("resources");
Turf = new Mongo.Collection("Turf");
worldMapFields = new Mongo.Collection("worldMapFields");
STATUS = new Mongo.Collection("STATUS");
// mine = new Mongo.Collection("mine");
mineBase = new Mongo.Collection("mineBase");
mineSupport = new Mongo.Collection("mineSupport");
mineScrounge = new Mongo.Collection("mineScrounge");
battlefieldBase = new Mongo.Collection("battlefieldBase");
battlefieldSupport = new Mongo.Collection("battlefieldSupport");
battlefieldScrounge = new Mongo.Collection("battlefieldScrounge");
//CLIENT ONLY COLLECTIONS
//die client only collection, die Daten aus der playerData enthält, aber nur solche, die
//für die worldMap relevant sind (vorher "worldMapPlayerData")
if(Meteor.isClient) {
WorldMapPlayerData = new Mongo.Collection('playerDataForWorldMap');
}