public void CreateEffect(Loading.EffectData ED)
 {
     UniqueName = ED.UniqueName;
     TheEffect  = Loading.CardLoading.GetEffectFromData(ED);
     TheEffect.Setup(this, ED);
     HasEffect = true;
 }
Beispiel #2
0
 public virtual void Setup(EffectNode EN, Loading.EffectData ED)
 {
     if (ED.Modules != null)
     {
         foreach (Loading.ModuleData MD in ED.Modules)
         {
             if (MD.Type == ModuleType.Persistance)
             {
                 Modules.Persistance.PersistanceModule M =
                     (Modules.Persistance.PersistanceModule)Loading.CardLoading.GetModuleFromData(MD);
                 M.Setup(EN.GetEntity(), MD);
                 AddPersistanceModule(M);
             }
         }
     }
 }
Beispiel #3
0
        public Effect_Entity(Loading.EffectCardData ECD)
        {
            Name      = ECD.mName;
            mIsShared = ECD.EData.Shared;
            EData     = ECD.EData;
            if (ECD.mActions != null)
            {
                foreach (Loading.ActionData actionData in ECD.mActions)
                {
                    if (actionData.mIsPlaced)
                    {
                        PAHolder.AddAction(Loading.CardLoading.GetActionInfoFromData(actionData));
                    }
                    else
                    {
                        Actions.Add(Loading.CardLoading.GetActionInfoFromData(actionData));
                    }
                }
            }

            Node = new Effects.EffectNode(this);
        }