Example #1
0
    /// <summary>
    /// [Send Message] Send message to server to cut specified wire
    /// </summary>
    /// <param name="targetWorldPosition">World position of target tile</param>
    /// <param name="positionZ">Z position of target tile</param>
    private void SendCableCuttingMessage(Vector3 targetWorldPosition, int positionZ)
    {
        // create  message
        CableCuttingMessage message = new CableCuttingMessage()
        {
            performer           = PlayerManager.LocalPlayer,
            targetWorldPosition = targetWorldPosition,
            positionZ           = positionZ
        };

        // send message
        NetworkClient.Send(message, 0);
    }
Example #2
0
    /// <summary>
    /// [Send Message] Send message to server to cut specified wire
    /// </summary>
    /// <param name="targetWorldPosition">World position of target tile</param>
    /// <param name="positionZ">Z position of target tile</param>
    private void SendCableCuttingMessage(Vector3 targetWorldPosition, string Name, TileType TileType)
    {
        // create  message
        CableCuttingMessage message = new CableCuttingMessage()
        {
            performer           = PlayerManager.LocalPlayer,
            targetWorldPosition = targetWorldPosition,
            Name     = Name,
            TileType = TileType
        };

        // send message
        NetworkClient.Send(message, 0);
    }