コード例 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Bees       = (BeesComponent)reader.ReadItem();      //for displaying bee swarm
            m_Health     = reader.ReadInt();                      //current health
            m_NextCheck  = reader.ReadDateTime();                 //next update check
            m_Status     = (HiveStatus)reader.ReadInt();          //growth stage
            m_LastGrowth = (HiveGrowthIndicator)reader.ReadInt(); //last growth
            m_Age        = reader.ReadInt();                      //age of hive
            m_Population = reader.ReadInt();                      //bee population (*10k)
            m_Parasite   = reader.ReadInt();                      //parasite level(0, 1, 2)
            m_Disease    = reader.ReadInt();                      //disease level (0, 1, 2)
            m_Flowers    = reader.ReadInt();                      //amount of water tiles in range (during last check)
            m_Water      = reader.ReadInt();                      //number of flowers in range (during last check)
            m_Wax        = reader.ReadInt();                      //amount of Wax
            m_Honey      = reader.ReadInt();                      //amount of Honey
            m_PotAgility = reader.ReadInt();                      //number of agility potions
            m_PotHeal    = reader.ReadInt();                      //number of heal potions
            m_PotCure    = reader.ReadInt();                      //number of cure potions
            m_PotStr     = reader.ReadInt();                      //number of stength potions
            m_PotPoison  = reader.ReadInt();                      //number of poison potions
            m_Comp       = (BeehiveComponent)reader.ReadItem();   //for storing the top of the hive
        }
コード例 #2
0
 public Beehive()
 {
     AddComponent(new AddonComponent(2868), 0, 0, 0);               //table
     //AddComponent( new BeehiveComponent(this),0,0,+6 ); //beehive
     m_Comp = new BeehiveComponent(this);
     AddComponent(m_Comp, 0, 0, +6);
     m_Bees         = new BeesComponent(this);
     m_Bees.Visible = false;
     AddComponent(m_Bees, 0, 0, +6);
 }
コード例 #3
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			m_Bees = (BeesComponent)reader.ReadItem();  //for displaying bee swarm
			m_Health = reader.ReadInt();  //current health
			m_NextCheck = reader.ReadDateTime();	//next update check
			m_Status = (HiveStatus)reader.ReadInt();  //growth stage
			m_LastGrowth = (HiveGrowthIndicator)reader.ReadInt();  //last growth
			m_Age = reader.ReadInt();  //age of hive
			m_Population = reader.ReadInt();  //bee population (*10k)
			m_Parasite = reader.ReadInt();  //parasite level(0, 1, 2)
			m_Disease = reader.ReadInt();  //disease level (0, 1, 2)
			m_Flowers = reader.ReadInt();  //amount of water tiles in range (during last check)
			m_Water = reader.ReadInt();	 //number of flowers in range (during last check)
			m_Wax = reader.ReadInt();  //amount of Wax
			m_Honey = reader.ReadInt();  //amount of Honey
			m_PotAgility = reader.ReadInt();  //number of agility potions
			m_PotHeal = reader.ReadInt();  //number of heal potions
			m_PotCure = reader.ReadInt();  //number of cure potions
			m_PotStr = reader.ReadInt();  //number of stength potions
			m_PotPoison = reader.ReadInt();  //number of poison potions
			m_Comp = (BeehiveComponent)reader.ReadItem();  //for storing the top of the hive

		}
コード例 #4
0
		public Beehive()
		{
			AddComponent( new AddonComponent( 2868 ),0,0, 0 ); //table
			//AddComponent( new BeehiveComponent(this),0,0,+6 ); //beehive
			m_Comp = new BeehiveComponent(this);
			AddComponent( m_Comp,0,0,+6);
			m_Bees = new BeesComponent(this);
			m_Bees.Visible = false;
			AddComponent( m_Bees,0,0,+6);
		}