Example #1
0
 public static void Load()
 {
     foreach (Enigma.D3.Assets.Scene Scene in SNO.GetContainer <Enigma.D3.Assets.Scene>(Enigma.D3.Enums.SnoGroupId.Scene))
     {
         SNOScenes.Add(Scene.x000_Header.x00_SnoId, new SceneNavContainer(Scene.x180_NavZoneDefinition.x08_NavCells));
     }
 }
Example #2
0
        public static bool TryAdd(int SceneID)
        {
            foreach (Enigma.D3.Assets.Scene Scene in SNO.GetContainer <Enigma.D3.Assets.Scene>(Enigma.D3.Enums.SnoGroupId.Scene))
            {
                if (Scene.x000_Header.x00_SnoId == SceneID)
                {
                    SNOScenes.Add(Scene.x000_Header.x00_SnoId, new SceneNavContainer(Scene.x180_NavZoneDefinition.x08_NavCells));
                    return(true);
                }
            }

            return(false);
        }