public void SpeacialWeaponEvent(MySpecialWeaponEventEnum eventType, MyMwcObjectBuilder_SmallShip_Weapon_TypesEnum weapon)
        {
            MyEventSpeacialWeapon msg = new MyEventSpeacialWeapon();

            msg.ShipEntityId = MySession.PlayerShip.EntityId.Value.NumericValue;
            msg.Weapon       = weapon;
            msg.WeaponEvent  = eventType;

            Peers.SendToAll(ref msg, NetDeliveryMethod.ReliableUnordered);
        }
예제 #2
0
 public void WriteSpecialWeaponEventEnum(MySpecialWeaponEventEnum val)
 {
     m_binaryWriter.Write((byte)val);
 }
예제 #3
0
        public bool ReadSpecialWeaponEventEnum(ref MySpecialWeaponEventEnum val)
        {
            byte numericValue = 0;

            return(ReadByte(ref numericValue) && MyMwcUtils.GetEnumFromNumber <MySpecialWeaponEventEnum, byte>(numericValue, ref val));
        }
        public void SpeacialWeaponEvent(MySpecialWeaponEventEnum eventType, MyMwcObjectBuilder_SmallShip_Weapon_TypesEnum weapon)
        {
            MyEventSpeacialWeapon msg = new MyEventSpeacialWeapon();
            msg.ShipEntityId = MySession.PlayerShip.EntityId.Value.NumericValue;
            msg.Weapon = weapon;
            msg.WeaponEvent = eventType;

            Peers.SendToAll(ref msg, NetDeliveryMethod.ReliableUnordered);
        }