Example #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            /*	case 2:
             * {
             *      DefaultMaxLevel = reader.ReadInt();
             *      MaxLevelsCap = reader.ReadInt();
             *      EnableExpCap = reader.ReadBool();
             *      DisplayExpProp = reader.ReadBool();
             *      PointsPerLevel = reader.ReadInt();
             *      DoubleArtifactCost = reader.ReadBool();
             *      BlacksmithOnly = reader.ReadBool();
             *      BlacksmithSkillRequired = reader.ReadDouble();
             *      RewardBlacksmith = reader.ReadBool();
             *      BlacksmithRewardAmt = reader.ReadInt();
             *      m_Experience = reader.ReadInt();
             *      m_Level = reader.ReadInt();
             *      m_Points = reader.ReadInt();
             *      m_MaxLevel = reader.ReadInt();
             *      goto case 1;
             * }*/
            case 1:
            {
                m_Serial = reader.ReadInt();
                m_Ranged = reader.ReadItem() as BaseRanged;
                goto case 0;
            }

            case 0:
            {
                m_HasBowString = reader.ReadBool();
                m_Strength     = ( StringStrength )reader.ReadEncodedInt();
                m_PullWeight   = ( PoundsPerPull )reader.ReadEncodedInt();
                m_ArrowType    = ( ArrowType )reader.ReadEncodedInt();
                m_BoltType     = ( BoltType )reader.ReadEncodedInt();
                break;
            }
            }
        }
Example #2
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );
            int version = reader.ReadInt();

            switch ( version )
            {
                    /*	case 2:
                    {
                        DefaultMaxLevel = reader.ReadInt();
                        MaxLevelsCap = reader.ReadInt();
                        EnableExpCap = reader.ReadBool();
                        DisplayExpProp = reader.ReadBool();
                        PointsPerLevel = reader.ReadInt();
                        DoubleArtifactCost = reader.ReadBool();
                        BlacksmithOnly = reader.ReadBool();
                        BlacksmithSkillRequired = reader.ReadDouble();
                        RewardBlacksmith = reader.ReadBool();
                        BlacksmithRewardAmt = reader.ReadInt();
                        m_Experience = reader.ReadInt();
                        m_Level = reader.ReadInt();
                        m_Points = reader.ReadInt();
                        m_MaxLevel = reader.ReadInt();
                        goto case 1;
                    }*/
                case 1:
                    {
                        m_Serial = reader.ReadInt();
                        m_Ranged = reader.ReadItem() as BaseRanged;
                        goto case 0;
                    }
                case 0:
                    {
                        m_HasBowString = reader.ReadBool();
                        m_Strength = ( StringStrength )reader.ReadEncodedInt();
                        m_PullWeight = ( PoundsPerPull )reader.ReadEncodedInt();
                        m_ArrowType = ( ArrowType )reader.ReadEncodedInt();
                        m_BoltType = ( BoltType )reader.ReadEncodedInt();
                        break;
                    }
            }
        }
Example #3
0
 public BaseRangedModule(Serial serial) : base(serial)
 {
     HasBowString            = true;
     StringStrengthSelection = StringStrength.VeryWeak;
     PullWeightSelection     = PoundsPerPull.Fourty;
 }