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); }
public void WriteSpecialWeaponEventEnum(MySpecialWeaponEventEnum val) { m_binaryWriter.Write((byte)val); }
public bool ReadSpecialWeaponEventEnum(ref MySpecialWeaponEventEnum val) { byte numericValue = 0; return(ReadByte(ref numericValue) && MyMwcUtils.GetEnumFromNumber <MySpecialWeaponEventEnum, byte>(numericValue, ref val)); }