Exemplo n.º 1
0
    //public Flags ActorFlags { get; set; }

    public ActorData(string key) : base(key)
    {
        buffContainer     = new BuffContainer();
        isAlive           = true;
        equipment         = new Equipment();
        Relationships     = new Relationship();
        inventory         = new Inventory();
        toolbaar          = new ToolBarData();
        actorPropertyTags = new List <string>();
        // Relationships = new Relationship();

        blockAttack = false;
        blockMove   = false;

        JobDataState = new JobDataState();
        cooldownMap  = new CooldownMap();

        primaryJob     = "";
        secondaryJob   = "";
        description    = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vitae nunc eget leo maximus scelerisque commodo ut ex. Nulla iaculis dui erat, a pharetra ipsum pharetra a. Vestibulum sed commodo nisl, non feugiat nunc.";
        deathThreshold = 0;

        currentStatCollection = new StatsContainer();
        maxStatCollection     = new StatsContainer();
    }
Exemplo n.º 2
0
    public JobDataState Copy()
    {
        JobDataState state = new JobDataState();


        string[] keys          = JobPoints.Keys.ToArray();
        string[] jobAndRaceKey = TalentsLearned.Keys.ToArray();


        foreach (string k in keys)
        {
            state.JobPoints[k] = JobPoints[k];
        }

        state.AddJobKeys(jobAndRaceKey.ToList());

        foreach (string k in jobAndRaceKey)
        {
            foreach (string talent in TalentsLearned[k])
            {
                state.LearnSkill(k, talent);
            }
        }

        return(state);
    }