JSGGlobalData.cs 686 B

1234567891011121314151617181920212223242526272829
  1. using CommonAI.Zone;
  2. using CommonLang;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. namespace CommonAI.ZoneServer.JSGModule
  8. {
  9. public class JSGGlobalData
  10. {
  11. //全局默认的未配置的法术释放方式模板
  12. // 卡牌法术模板
  13. private static HashMap<int, LaunchSpell> mUnConfigSpell = new HashMap<int, LaunchSpell>();
  14. public static LaunchSpell GetUnConfigSpellByID(int spellId)
  15. {
  16. LaunchSpell launchSpll = mUnConfigSpell.Get(spellId);
  17. if(launchSpll == null)
  18. {
  19. launchSpll = new LaunchSpell(true);
  20. launchSpll.SpellID = spellId;
  21. mUnConfigSpell.Put(spellId, launchSpll);
  22. }
  23. return launchSpll;
  24. }
  25. }
  26. }