Beispiel #1
0
        public static void MessageEventHandler(object sender, MsgEventArgs m)
        {
            MainPage.Player.hp         = Convert.ToString(Convert.ToInt32(m.current_player.hp) + Convert.ToInt32(m.current_player.stamina));
            MainPage.Player.radiation  = m.current_player.radiation;
            MainPage.Player.hunger     = m.current_player.hunger;
            MainPage.Player.drought    = m.current_player.drought;
            MainPage.Player.money      = m.current_player.money;
            MainPage.Player.isAlive    = m.current_player.isAlive;
            MainPage.Player.isBleeding = m.current_player.isBleeding;

            MainPage.Player.weapon_ids = m.current_player.weapon_ids;
            MainPage.Player.ammo_ids   = m.current_player.ammo_ids;
            MainPage.Player.armor_ids  = m.current_player.armor_ids;

            MainPage.Player.active_helmet  = m.current_player.active_helmet;
            MainPage.Player.active_armor   = m.current_player.active_armor;
            MainPage.Player.active_boots   = m.current_player.active_boots;
            MainPage.Player.active_weapon1 = m.current_player.active_weapon1;
            MainPage.Player.active_weapon2 = m.current_player.active_weapon2;

            MainPage.Player.stamina      = m.current_player.stamina;
            MainPage.Player.agility      = m.current_player.agility;
            MainPage.Player.intelligence = m.current_player.intelligence;
            MainPage.Player.charisma     = m.current_player.charisma;

            MainPage.Player.free_points = m.current_player.free_points;
        }
Beispiel #2
0
        public void OnMessageChanged(Player player)
        {
            MsgEventArgs m = new MsgEventArgs();

            if (MessageHasChanged != null)
            {
                m.current_player = player;
                MessageHasChanged(this, m);
            }
        }