public object ConvertToValue(object dbValue, System.Type valueType)
    {
        SMTargetGet sm_target = Activator.CreateInstance(valueType) as SMTargetGet;

        string str = dbValue.ToStringOrEmpty();

        if (string.IsNullOrEmpty(str))
        {
            return(sm_target);
        }
        sm_target.Convert(str);

        return(sm_target);
    }
Esempio n. 2
0
    public Summon BuildSummon(uint summon_id, ISkillCaster caster, ISummonCaster summon_caster, ISkillTarget summon_target, SMTargetGet trigger_target_get)
    {
        Summon summon = new Summon();

        summon.Create(GameCenter.Instance.DataManager.skillSummonDB.Get(id, summon_id), m_Skill, caster, summon_caster, summon_target);

        summon.TriggerTargetsGet = trigger_target_get;

        summons.Add(summon);

        return(summon);
    }