private void Send_Notification_To_Channel( EChannelID channel_id, EPersistenceID source_player_id, EPersistenceID target_player_id, EChatNotification chat_event, EPersistenceID skip_id ) { string source_player_name = Get_Player_Name_By_Persistence_ID( source_player_id ); string target_player_name = Get_Player_Name_By_Persistence_ID( target_player_id ); CChatClientNotificationMessage notification_message = new CChatClientNotificationMessage( channel_id, target_player_name, target_player_id, chat_event, source_player_name ); Send_Message_To_Channel( channel_id, notification_message, skip_id ); }
// Construction public CChatClientNotificationMessage( EChannelID channel_id, string target_name, EPersistenceID target_id, EChatNotification chat_event, string source_name ) : base() { ChannelID = channel_id; TargetName = target_name; TargetID = target_id; SourceName = source_name; ChatEvent = chat_event; }
private void Send_Notification_To_Channel( EChannelID channel_id, EPersistenceID player_id, EChatNotification chat_event, EPersistenceID skip_id ) { Send_Notification_To_Channel( channel_id, EPersistenceID.Invalid, player_id, chat_event, skip_id ); }