Exemplo n.º 1
0
        override public void ReadParameter(INIReaderParameter parameter)
        {
            base.ReadParameter(parameter);

            if (parameter.Check("music_default"))
            {
                musicDefault = parameter.GetString(0);
            }
            else if (parameter.Check("music_tension"))
            {
                musicTension = parameter.GetString(0);
            }
            else if (parameter.Check("music_battle"))
            {
                musicBattle = parameter.GetString(0);
            }
            else if (parameter.Check("background"))
            {
                background = parameter.GetString(0);
            }
            else if (parameter.Check("stars"))
            {
                stars = parameter.GetString(0);
            }
            else if (parameter.Check("backgroundColor"))
            {
                backgroundColor = parameter.GetVector4(0);
            }
        }
 public override void ReadParameter(INIReaderParameter parameter)
 {
     id = parameter.GetStrkey64(0);
     nickname = parameter.GetString(0);
     hptype = parameter.GetStrkey64(1);
     position = new Vector3(parameter.GetFloat(2), parameter.GetFloat(3), parameter.GetFloat(4));
     rotation = new Vector3(parameter.GetFloat(5), parameter.GetFloat(6), parameter.GetFloat(7));
     viewAngles = new Vector2(parameter.GetFloat(8), parameter.GetFloat(9));
 }
 public override void ReadParameter(INIReaderParameter parameter)
 {
     id         = parameter.GetStrkey64(0);
     nickname   = parameter.GetString(0);
     hptype     = parameter.GetStrkey64(1);
     position   = new Vector3(parameter.GetFloat(2), parameter.GetFloat(3), parameter.GetFloat(4));
     rotation   = new Vector3(parameter.GetFloat(5), parameter.GetFloat(6), parameter.GetFloat(7));
     viewAngles = new Vector2(parameter.GetFloat(8), parameter.GetFloat(9));
 }
        public override void ReadParameter(INIReaderParameter parameter)
        {
            base.ReadParameter(parameter);

            if (parameter.Check("swappable"))
            {
                swapable = parameter.GetBool(0);
            }
            else if (parameter.Check("mass"))
            {
                mass = parameter.GetFloat(0);
            }
        }
        public override void ReadParameter(INIReaderParameter parameter)
        {
            base.ReadParameter(parameter);

            if (parameter.Check("swappable"))
            {
                swapable = parameter.GetBool(0);
            }
            else if (parameter.Check("mass"))
            {
                mass = parameter.GetFloat(0);
            }
        }
        public override void ReadParameter(INIReaderParameter parameter)
        {
            if (parameter == "resistance")
            {
                ResistanceStats.ResistanceType resType = ResistanceStats.FromString(parameter.Get<string>(0));

                if (resType != ResistanceStats.ResistanceType.Null && resType != ResistanceStats.ResistanceType.MaxTypes)
                    resistanceStats[resType] = parameter.Get<float>(1);
            }
            else if (parameter == "prefab_path")
                prefabPath = parameter.Get<string>(0);
            else
                base.ReadParameter(parameter);
        }
Exemplo n.º 7
0
 public virtual void ReadParameter(INIReaderParameter parameter)
 {
     if (parameter.Check(ArchConst.Nickname))
     {
         nickname = parameter.GetString(0);
         id       = Hash.FromString64(nickname);
     }
     else if (parameter.Check(ArchConst.IdsInfo))
     {
     }
     else if (parameter.Check(ArchConst.IdsObjectName))
     {
     }
     else if (parameter.Check(ArchConst.IdsDescription))
     {
     }
 }
        public override void ReadParameter(INIReaderParameter parameter)
        {
            if (parameter == "resistance")
            {
                ResistanceStats.ResistanceType resType = ResistanceStats.FromString(parameter.Get <string>(0));

                if (resType != ResistanceStats.ResistanceType.Null && resType != ResistanceStats.ResistanceType.MaxTypes)
                {
                    resistanceStats[resType] = parameter.Get <float>(1);
                }
            }
            else if (parameter == "prefab_path")
            {
                prefabPath = parameter.Get <string>(0);
            }
            else
            {
                base.ReadParameter(parameter);
            }
        }
Exemplo n.º 9
0
        public virtual void ReadParameter(INIReaderParameter parameter)
        {
            if (parameter.Check(ArchConst.Nickname))
            {
                nickname = parameter.GetString(0);
                id = Hash.FromString64(nickname);
            }
            else if (parameter.Check(ArchConst.IdsInfo))
            {

            }
            else if (parameter.Check(ArchConst.IdsObjectName))
            {

            }
            else if (parameter.Check(ArchConst.IdsDescription))
            {

            }
        }
Exemplo n.º 10
0
        public override void ReadParameter(INIReaderParameter parameter)
        {
            base.ReadParameter(parameter);

            if (parameter.Check("music_default"))
            {
                musicDefault = parameter.GetString(0);
            }
            else if (parameter.Check("music_tension"))
            {
                musicTension = parameter.GetString(0);
            }
            else if (parameter.Check("music_battle"))
            {
                musicBattle = parameter.GetString(0);
            }
            else if (parameter.Check("background"))
            {
                background = parameter.GetString(0);
            }
            else if (parameter.Check("stars"))
            {
                stars = parameter.GetString(0);
            }
            else if (parameter.Check("backgroundColor"))
            {
                backgroundColor = parameter.GetVector4(0);
            }
        }