Пример #1
0
    public void ServerPerformInteraction(PositionalHandApply interaction)
    {
        var pad = interaction.TargetObject.GetComponent <QuantumPad>();

        if (pad == null)
        {
            return;
        }

        if (pad.disallowLinkChange)
        {
            Chat.AddExamineMsgFromServer(interaction.Performer, "The link has been hard locked, you cannot change it.");
            return;
        }

        if (pad == padInBuffer)
        {
            Chat.AddExamineMsgFromServer(interaction.Performer, "You cannot link the same pad together, clear the buffer if you wish to add to it.");
            return;
        }

        if (padInBuffer == null)
        {
            Chat.AddExamineMsgFromServer(interaction.Performer, "You set the buffer to this quantum pad.");
            padInBuffer = pad;
        }
        else
        {
            Chat.AddExamineMsgFromServer(interaction.Performer, "You set this quantum pad to connect to the pad in buffer.");
            pad.connectedPad = padInBuffer;
        }
    }
Пример #2
0
 public void ServerPerformInteraction(HandActivate interaction)
 {
     Chat.AddExamineMsgFromServer(interaction.Performer, "You clear the quantum key buffer.");
     padInBuffer = null;
 }