Exemplo n.º 1
0
        public Character()
        {
            _EXP    = new SharableInt32();
            _Level  = new SharableInt32();
            BaseMEL = new SharableInt32();
            BaseRNG = new SharableInt32();
            BaseDEF = new SharableInt32();
            BaseSKL = new SharableInt32();
            BaseEVA = new SharableInt32();
            BaseHIT = new SharableInt32();

            _EXP.Value    = 0;
            _Level.Value  = 0;
            BaseMEL.Value = 0;
            BaseRNG.Value = 0;
            BaseDEF.Value = 0;
            BaseSKL.Value = 0;
            BaseEVA.Value = 0;
            BaseHIT.Value = 0;

            ArrayPilotSkill        = new BaseAutomaticSkill[0];
            ArrayRelationshipBonus = new BaseAutomaticSkill[0];
            ArrayPilotSpirit       = new ManualSkill[0];

            TerrainGrade = new TerrainGrades(0, 0, 0, 0);

            MaxWill                = 150;
            Will                   = 100;
            TeamTags               = new TagSystem();
            Effects                = new EffectHolder();
            DicCharacterLink       = new Dictionary <string, CharacterLinkTypes>();
            ListQuoteSetVersusName = new List <string>();
            DicAttackQuoteSet      = new Dictionary <string, QuoteSet>();
        }
Exemplo n.º 2
0
        public Product(string name, LocalizedPrice price, LocalizedWeight weight, TagSystem tags, int id)
        {
            Tags = new TagSystem();

            _name   = name;
            _price  = price;
            _weight = weight;
            _tags   = tags;
            _id     = id;
        }
Exemplo n.º 3
0
 protected Unit(string Name)
     : base(Name)
 {
     ListIgnoreSkill = new List <string>();
     AttackIndex     = -1;
     AttackAccuracy  = "";
     _UnitStat       = new UnitStats(new bool[1, 1] {
         { true }
     });
     ArrayCharacterActive = new Character[0];
     ArrayParts           = new UnitPart[0];
     TeamTags             = new TagSystem();
     TeamEventID          = "";
 }
Exemplo n.º 4
0
    private void Awake()
    {
        //if (!isServer)
        //{
        //    Destroy(gameObject);
        //}

        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        Invoke("SetCharacterTags", 3);
    }
Exemplo n.º 5
0
        public Squad(string SquadName, Unit Leader = null, Unit WingmanA = null, Unit WingmanB = null)
        {
            IsDead = false;
            StartTurn();
            this.SquadName = SquadName;

            CurrentLeaderIndex   = 0;
            CurrentWingmanAIndex = -1;
            CurrentWingmanBIndex = -1;

            SquadDefenseBattleBehavior = "";
            ListAttackedTeam           = new List <int>();
            ListParthDrop = new List <string>();
            TeamTags      = new TagSystem();

            if (WingmanB != null)
            {
                ArrayUnit    = new Unit[3];
                ArrayUnit[0] = Leader;
                ArrayUnit[1] = WingmanA;
                ArrayUnit[2] = WingmanB;

                CurrentWingmanAIndex = 1;
                CurrentWingmanBIndex = 2;
            }
            else if (WingmanA != null)
            {
                ArrayUnit    = new Unit[2];
                ArrayUnit[0] = Leader;
                ArrayUnit[1] = WingmanA;

                CurrentWingmanAIndex = 1;
            }
            else
            {
                ArrayUnit    = new Unit[1];
                ArrayUnit[0] = Leader;
            }
        }
Exemplo n.º 6
0
 //[Required(AllowEmptyStrings = false, ErrorMessage = "the product must have a name")]
 public Product()
 {
     Tags = new TagSystem();
 }