コード例 #1
0
        public Ability(string modelPath, string name, string suffix, int id)
        {
            Struct = new AbilityStruct(name, suffix);

            Name   = name;
            Suffix = suffix;

            if (0 == id)
            {
                Id    = ObjectId.GenerateAbilityId();
                Model = new AbilityModel(TLVCustom, modelPath, null, Id);
            }
            else
            {
                Id = id;
                ObjectId.AddAbilityId(id);
                Model = new AbilityModel(TLVStandard, modelPath, null, Id);
            }

            CodeId = Id.ToObjectId();

            //if (!AbilityMasterList.Exists(x => x.Path == itemPath))
            // Model = new AbilityModel(this, tlvAbilityPath, null, 0) != null;

            //Id = id;

            //Model = item;

            Missile = new Missile(null);

            MasterList.Add(this);
        }
コード例 #2
0
ファイル: Missile.cs プロジェクト: TriggerEdge/Wc3-Engine
        public Missile(AbilityStruct abilityStruct)
        {
            Struct = abilityStruct;

            /*Basics = new List<object>()
             * {
             *  Count,
             *  Damage,
             *  Period,
             *  Duration,
             *  Arc,
             *  Speed,
             *  Collision,
             *  CastDist,
             *  Variation,
             * };
             *
             * Effects = new List<object>()
             * {
             *  Model,
             *  OnHit,
             *  OnDestroy,
             * };*/
        }