public void CallRpcThrowGrenade(GrenadeManager.GrenadeSpawnInfo g)
    {
        if (!NetworkServer.active)
        {
            Debug.LogError("RPC Function RpcThrowGrenade called on client.");
            return;
        }
        NetworkWriter networkWriter = new NetworkWriter();

        networkWriter.Write(0);
        networkWriter.Write((short)((ushort)2));
        networkWriter.WritePackedUInt32((uint)GrenadeManager.kRpcRpcThrowGrenade);
        networkWriter.Write(base.GetComponent <NetworkIdentity>().netId);
        GeneratedNetworkCode._WriteGrenadeSpawnInfo_GrenadeManager(networkWriter, g);
        this.SendRPCInternal(networkWriter, 2, "RpcThrowGrenade");
    }