Skip to content

Instantly share code, notes, and snippets.

@borovan
Created December 15, 2021 08:05
Show Gist options
  • Save borovan/61144bfc6d3f0cca56561667af67a4f7 to your computer and use it in GitHub Desktop.
Save borovan/61144bfc6d3f0cca56561667af67a4f7 to your computer and use it in GitHub Desktop.
import Hash "mo:base/Hash";
import ORM "ORM";
import R "Records";
import Random "Random";
import Array "store/Array";
import TrieMap "store/TrieMap";
module {
// DB
public class DB() {
//
// TrieMaps
// created by the live game logic
//
public let character = TrieMap.Store<R.Character>();
public let characterZone = TrieMap.Store<R.CharacterZone>();
public let discovery = TrieMap.Store<R.Discovery>();
public let pet = TrieMap.Store<R.Pet>();
public let player = TrieMap.Store<R.Player>();
public let team = TrieMap.Store<R.Team>();
//
// Arrays
// game reference data, created by the Dragginz Team
//
public let ability = Array.Store<R.Ability>();
public let abilityCategory = Array.Store<R.AbilityCategory>();
public let acidity = Array.Store<R.Acidity>();
public let alchemyRecipe = Array.Store<R.AlchemyRecipe>();
public let animation = Array.Store<R.Animation>();
public let assetBundle = Array.Store<R.AssetBundle>();
public let atmosphere = Array.Store<R.Atmosphere>();
public let biome = Array.Store<R.Biome>();
public let characterTemplate = Array.Store<R.CharacterTemplate>();
public let climate = Array.Store<R.Climate>();
public let colour = Array.Store<R.Colour>();
public let cookingCategory = Array.Store<R.CookingCategory>();
public let cookingRecipe = Array.Store<R.CookingRecipe>();
public let cooldown = Array.Store<R.Cooldown>();
public let cover = Array.Store<R.Cover>();
public let culture = Array.Store<R.Culture>();
public let damageResist = Array.Store<R.DamageResist>();
public let damageType = Array.Store<R.DamageType>();
public let density = Array.Store<R.Density>();
public let domain = Array.Store<R.Domain>();
public let duration = Array.Store<R.Duration>();
public let event = Array.Store<R.Event>();
public let gender = Array.Store<R.Gender>();
public let geology = Array.Store<R.Geology>();
public let hardness = Array.Store<R.Hardness>();
public let icon = Array.Store<R.Icon>();
public let item = Array.Store<R.Item>();
public let itemLive = Array.Store<R.ItemLive>();
public let itemMass = Array.Store<R.ItemMass>();
public let itemSet = Array.Store<R.ItemSet>();
public let itemShape = Array.Store<R.ItemShape>();
public let itemStack = Array.Store<R.ItemStack>();
public let itemWarmth = Array.Store<R.ItemWarmth>();
public let lootAlchemy = Array.Store<R.LootAlchemy>();
public let lootCombat = Array.Store<R.LootCombat>();
public let lootForage = Array.Store<R.LootForage>();
public let map = Array.Store<R.Map>();
public let material = Array.Store<R.Material>();
public let matter = Array.Store<R.Matter>();
public let mob = Array.Store<R.Mob>();
public let mobPart = Array.Store<R.MobPart>();
public let model = Array.Store<R.Model>();
public let palette = Array.Store<R.Palette>();
public let petStage = Array.Store<R.PetStage>();
public let petTemplate = Array.Store<R.PetTemplate>();
public let population = Array.Store<R.Population>();
public let prop = Array.Store<R.Prop>();
public let quality = Array.Store<R.Quality>();
public let quest = Array.Store<R.Quest>();
public let rarity = Array.Store<R.Rarity>();
public let resonance = Array.Store<R.Resonance>();
public let rig = Array.Store<R.Rig>();
public let role = Array.Store<R.Role>();
public let roleCategory = Array.Store<R.RoleCategory>();
public let roleLive = Array.Store<R.RoleLive>();
public let sap = Array.Store<R.Sap>();
public let shop = Array.Store<R.Shop>();
public let size = Array.Store<R.Size>();
public let skill = Array.Store<R.Skill>();
public let sound = Array.Store<R.Sound>();
public let species = Array.Store<R.Species>();
public let spell = Array.Store<R.Spell>();
public let spellCategory = Array.Store<R.SpellCategory>();
public let spellSet = Array.Store<R.SpellSet>();
public let stat = Array.Store<R.Stat>();
public let temperature = Array.Store<R.Temperature>();
public let terrain = Array.Store<R.Terrain>();
public let texture = Array.Store<R.Texture>();
public let textureMaterial = Array.Store<R.TextureMaterial>();
public let theme = Array.Store<R.Theme>();
public let token = Array.Store<R.Token>();
public let unit = Array.Store<R.Unit>();
public let volume = Array.Store<R.Volume>();
public let weather = Array.Store<R.Weather>();
public let zone = Array.Store<R.Zone>();
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment