Beispiel #1
0
    public static void Send(GameObject recipient, ExaminablePlayer examinablePlayer, bool observed)
    {
        var msg = new PlayerExaminationMessage()
        {
            ItemStorage            = examinablePlayer.gameObject.NetId(),
            VisibleName            = examinablePlayer.GetPlayerNameString(),
            Species                = examinablePlayer.GetPlayerSpeciesString(),
            Job                    = examinablePlayer.GetPlayerJobString(),
            Status                 = examinablePlayer.GetPlayerStatusString(),
            AdditionalInformations = examinablePlayer.GetAdditionalInformations(),
            Observed               = observed
        };

        msg.SendTo(recipient);
    }
Beispiel #2
0
    /// <summary>
    /// Informs the recipient that they can now show/hide the player examination UI
    /// </summary>
    public static void Send(GameObject recipient, ItemStorage itemStorage, string visibleName, string species, string job, string status, string additionalInformations, bool observed)
    {
        var msg = new PlayerExaminationMessage()
        {
            ItemStorage            = itemStorage.gameObject.NetId(),
            VisibleName            = visibleName,
            Species                = species,
            Job                    = job,
            Status                 = status,
            AdditionalInformations = additionalInformations,
            Observed               = observed
        };

        msg.SendTo(recipient);
    }