❔ how to name an event that only goal is to send message to player?
I have a chatbox like service in my project, it sends messages to players. I would like to make a message sending via event so i call
myplayer.SendMessage("hello")
and it is going to trigger event, but i don't have an idea how to name it, public event Action<Player, string> MessageSend
?? any ideas?7 Replies
ping me if you know
Just to clarify you're asking how to name the event as in naming convention, or you're asking for us to think of a better name other than
MessageSend
, or I completely misunderstood and it's something else?SendMessage
, SendChatMessage
, or have something like a MessageService
class, and just call it Send
Just to clarify you're asking how to name the event as in naming conventionjust name convention
is the event triggered before the message is sent or afterwards
cuz its more a semantic question thats an important point
Names of Type Members - Framework Design Guidelines
Learn the guidelines for naming type members in .NET, such as methods, properties, events, and fields.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.