public static void SetAnimation(DefAnimation anim, string key) { if (!initCache) { InitDataDefinitions(); } CollectionUtils.Put(animationDictionary, key, anim); }