Introduce IntKeyedDictionary
to improve performance.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Cryville.Common.Collections.Specialized;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cryville.Crtr {
|
||||
public class EffectManager {
|
||||
readonly Dictionary<int, EffectGroup> _groups
|
||||
= new Dictionary<int, EffectGroup>();
|
||||
readonly IntKeyedDictionary<EffectGroup> _groups
|
||||
= new IntKeyedDictionary<EffectGroup>();
|
||||
public EffectManager(PdtSkin skin) {
|
||||
foreach (var e in skin.effects) {
|
||||
_groups.Add(e.Key.Key, new EffectGroup(e.Value));
|
||||
|
Reference in New Issue
Block a user