protected GOM() { this.DefinitionsByName[HeroDefinition.Types.Association] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Class] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Enumeration] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Field] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Node] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Script] = new Dictionary <string, HeroDefinition>(); this.spaces = new Dictionary <IDSpaces, IDSpace>(); this.spaces[IDSpaces.ServerTemporaryNode] = new IDSpace(0x77359400L, 0xee6b2800L); this.root = new GOMFolder(); }
protected void AddNode(HeroNodeDef node) { string[] strArray = node.Name.Split(new char[] { '.' }); if (strArray.Length > 0) { GOMFolder root = this.root; foreach (string str in strArray) { root = root.CreateFolder(str); } root.SetNode(node); } }
protected GOM() { this.definitions = new Dictionary <ulong, HeroDefinition>(); this.DefinitionsByName = new Dictionary <HeroDefinition.Types, Dictionary <string, HeroDefinition> >(); this.DefinitionsByName[HeroDefinition.Types.Association] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Class] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Enumeration] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Field] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Node] = new Dictionary <string, HeroDefinition>(); this.DefinitionsByName[HeroDefinition.Types.Script] = new Dictionary <string, HeroDefinition>(); this.spaces = new Dictionary <IDSpaces, IDSpace>(); this.spaces[IDSpaces.ServerTemporaryNode] = new IDSpace(2000000000UL, 4000000000UL); this.root = new GOMFolder(); }
protected void AddNode(HeroNodeDef node) { string[] strArray = node.Name.Split(new char[1] { '.' }); if (strArray.Length <= 0) { return; } GOMFolder gomFolder = this.root; foreach (string name in strArray) { gomFolder = gomFolder.CreateFolder(name); } gomFolder.SetNode(node); }